#28AF21

A color in the Green family

#28af21 is a color in the Green family: RGB(40, 175, 33), HSL(117°, 68%, 41%), CMYK(77%, 0%, 81%, 31%). Closest named color: mediumseagreen. Contrast is 2.9:1 on white and 7.24:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#28af21
RGBrgb(40 175 33)
RGB (legacy)rgb(40, 175, 33)
RGB %rgb(16% 69% 13%)
HSLhsl(117 68% 41%)
HSV / HSBhsv(117, 81%, 69%)
HWBhwb(117 13% 31%)
CMYKcmyk(77%, 0%, 81%, 31%)
CIELAB (D50)lab(62.76 -55.56 55.8)
LCHlch(62.76 78.75 134.87)
OKLaboklab(0.6587 -0.1642 0.1269)
OKLCHoklch(0.6587 0.2075 142.3)
Decimal2666273

Properties

Color ToneGreen
Closest named colormediumseagreen ΔE 7.8
Closest web-safe color#339933
Hue117°
Saturation (HSL / HSV)68% / 81%
Lightness (HSL)41%
Brightness or Value (HSV)69%
Luminance (Rec.601 / Rec.709)46% / 53%
Relative luminance (WCAG)0.3122
Red / Green / Blue40 / 175 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.90:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
7.24:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 54.7 / -47.1 · As background with white / black text: Lc -60 / 49.3

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #28af21;
  --color-brand-oklch: oklch(65.87% 0.2075 142.3);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(40 175 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#28af21] text-[#28af21] border-[#28af21]">