#21831D#21831D

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

Color values

HEX#21831D
RGBrgb(33, 131, 29)
HSLhsl(118, 64%, 31%)
HSVhsv(118, 78%, 51%)
CMYKcmyk(74.8%, 0%, 77.9%, 48.6%)
CIE-LABlab(47.81, -47.44, 44.07)
CIE-LCHlch(47.81, 64.75, 137.10°)
OKLaboklab(53.45% -0.129 0.0992)
OKLCHoklch(53.45% 0.163 142.4)
XYZxyz(8.9647, 16.6436, 3.9022)
Luminance0.1664 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21831D #7F1D83
analogous
#54831D #21831D #1D834C
triadic
#21831D #1D2183 #831D21
tetradic
#21831D #1D5483 #7F1D83 #834C1D
square
#21831D #1D5483 #7F1D83 #834C1D
split-complementary
#21831D #4C1D83 #831D54
monochromatic
#081F07 #145112 #21831D #2EB528 #4AD645

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21831D#FFFFFF#000000##FFFFFF
##21831D1.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)
#867606
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#007F70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21831d;
/* rgb */ color: rgb(33, 131, 29);
/* oklch */ color: oklch(53.5% 0.163 142.4);
Tailwind
colors: {
  custom: {
    50: '#6da861',
    500: '#21831d',
    950: '#000000',
  },
}
SCSS
$custom: #21831d;
$custom-light: #6da861;
$custom-dark: #000000;
JSON
{
  "hex": "#21831d",
  "rgb": {
    "r": 33,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 117.647,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53451,
    "c": 0.16269,
    "h": 142.4
  },
  "luminance": 0.16645
}

Semantic roles & 50–950 ramp

primary
#21831D
secondary
#B246B6
accent
#41E7E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21831D

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

Preview Lab → · Contrast checker → · Palette generator →

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