#21811B#21811B

#21811B is a mid, vivid green. Relative luminance 0.161; OKLCH L 52.9% C 0.161 H 142.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#21811B
RGBrgb(33, 129, 27)
HSLhsl(116, 65%, 31%)
HSVhsv(116, 79%, 51%)
CMYKcmyk(74.4%, 0%, 79.1%, 49.4%)
CIE-LABlab(47.11, -46.90, 44.10)
CIE-LCHlch(47.11, 64.38, 136.76°)
OKLaboklab(52.87% -0.1276 0.0989)
OKLCHoklch(52.87% 0.161 142.2)
XYZxyz(8.6748, 16.1020, 3.6875)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21811B #7B1B81
analogous
#54811B #21811B #1B8148
triadic
#21811B #1B2181 #811B21
tetradic
#21811B #1B5481 #7B1B81 #81481B
square
#21811B #1B5481 #7B1B81 #81481B
split-complementary
#21811B #481B81 #811B54
monochromatic
#071C06 #144E10 #21811B #2EB426 #48D73F

Accessibility & contrast

On white

4.98
#21811B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#21811B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21811B
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21811B#FFFFFF#000000##FFFFFF
##21811B1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847403
Deuteranopia (green-blind)
#796D27
Tritanopia (blue-blind)
#017D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #21811b;
/* rgb */ color: rgb(33, 129, 27);
/* oklch */ color: oklch(52.9% 0.161 142.2);
Tailwind
colors: {
  custom: {
    50: '#6da760',
    500: '#21811b',
    950: '#000000',
  },
}
SCSS
$custom: #21811b;
$custom-light: #6da760;
$custom-dark: #000000;
JSON
{
  "hex": "#21811b",
  "rgb": {
    "r": 33,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 116.471,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52866,
    "c": 0.16147,
    "h": 142.2
  },
  "luminance": 0.16103
}

Semantic roles & 50–950 ramp

primary
#21811B
secondary
#AE43B5
accent
#3FE8DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #21811B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#21811B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva