#21831B#21831B

#21831B is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.4% C 0.164 H 142.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#21831B
RGBrgb(33, 131, 27)
HSLhsl(117, 66%, 31%)
HSVhsv(117, 79%, 51%)
CMYKcmyk(74.8%, 0%, 79.4%, 48.6%)
CIE-LABlab(47.80, -47.59, 44.77)
CIE-LCHlch(47.80, 65.34, 136.75°)
OKLaboklab(53.44% -0.1295 0.1003)
OKLCHoklch(53.44% 0.164 142.2)
XYZxyz(8.9408, 16.6341, 3.7762)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21831B #7D1B83
analogous
#55831B #21831B #1B8349
triadic
#21831B #1B2183 #831B21
tetradic
#21831B #1B5583 #7D1B83 #83491B
square
#21831B #1B5583 #7D1B83 #83491B
split-complementary
#21831B #491B83 #831B55
monochromatic
#071E06 #145011 #21831B #2EB625 #49D841

Accessibility & contrast

On white

4.85
#21831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#21831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21831B
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21831B#FFFFFF#000000##FFFFFF
##21831B1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867602
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#007F6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21831b;
/* rgb */ color: rgb(33, 131, 27);
/* oklch */ color: oklch(53.4% 0.164 142.2);
Tailwind
colors: {
  custom: {
    50: '#6da860',
    500: '#21831b',
    950: '#000000',
  },
}
SCSS
$custom: #21831b;
$custom-light: #6da860;
$custom-dark: #000000;
JSON
{
  "hex": "#21831b",
  "rgb": {
    "r": 33,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 116.538,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53437,
    "c": 0.1638,
    "h": 142.2
  },
  "luminance": 0.16635
}

Semantic roles & 50–950 ramp

primary
#21831B
secondary
#B043B6
accent
#3FE9DF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21831B

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

Preview Lab → · Contrast checker → · Palette generator →

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