#21831E#21831E

#21831E is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.5% C 0.162 H 142.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#21831E
RGBrgb(33, 131, 30)
HSLhsl(118, 63%, 32%)
HSVhsv(118, 77%, 51%)
CMYKcmyk(74.8%, 0%, 77.1%, 48.6%)
CIE-LABlab(47.81, -47.36, 43.71)
CIE-LCHlch(47.81, 64.45, 137.29°)
OKLaboklab(53.46% -0.1287 0.0986)
OKLCHoklch(53.46% 0.162 142.6)
XYZxyz(8.9773, 16.6487, 3.9684)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21831E #801E83
analogous
#54831E #21831E #1E834E
triadic
#21831E #1E2183 #831E21
tetradic
#21831E #1E5483 #801E83 #834E1E
square
#21831E #1E5483 #801E83 #834E1E
split-complementary
#21831E #4E1E83 #831E54
monochromatic
#081F07 #145113 #21831E #2EB529 #4BD547

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21831E#FFFFFF#000000##FFFFFF
##21831E1.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)
#867609
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#007F70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21831e;
/* rgb */ color: rgb(33, 131, 30);
/* oklch */ color: oklch(53.5% 0.162 142.6);
Tailwind
colors: {
  custom: {
    50: '#6da861',
    500: '#21831e',
    950: '#000000',
  },
}
SCSS
$custom: #21831e;
$custom-light: #6da861;
$custom-dark: #000000;
JSON
{
  "hex": "#21831e",
  "rgb": {
    "r": 33,
    "g": 131,
    "b": 30
  },
  "hsl": {
    "h": 118.218,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53458,
    "c": 0.16211,
    "h": 142.6
  },
  "luminance": 0.1665
}

Semantic roles & 50–950 ramp

primary
#21831E
secondary
#B347B6
accent
#42E6E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21831E

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

Preview Lab → · Contrast checker → · Palette generator →

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