#21831C#21831C

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

Color values

HEX#21831C
RGBrgb(33, 131, 28)
HSLhsl(117, 65%, 31%)
HSVhsv(117, 79%, 51%)
CMYKcmyk(74.8%, 0%, 78.6%, 48.6%)
CIE-LABlab(47.80, -47.51, 44.43)
CIE-LCHlch(47.80, 65.05, 136.92°)
OKLaboklab(53.44% -0.1292 0.0998)
OKLCHoklch(53.44% 0.163 142.3)
XYZxyz(8.9526, 16.6388, 3.8382)
Luminance0.1664 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21831C #7E1C83
analogous
#54831C #21831C #1C834A
triadic
#21831C #1C2183 #831C21
tetradic
#21831C #1C5483 #7E1C83 #834A1C
square
#21831C #1C5483 #7E1C83 #834A1C
split-complementary
#21831C #4A1C83 #831C54
monochromatic
#081E06 #145111 #21831C #2EB527 #4AD743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #21831c;
/* rgb */ color: rgb(33, 131, 28);
/* oklch */ color: oklch(53.4% 0.163 142.3);
Tailwind
colors: {
  custom: {
    50: '#6da860',
    500: '#21831c',
    950: '#000000',
  },
}
SCSS
$custom: #21831c;
$custom-light: #6da860;
$custom-dark: #000000;
JSON
{
  "hex": "#21831c",
  "rgb": {
    "r": 33,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 117.087,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53444,
    "c": 0.16326,
    "h": 142.3
  },
  "luminance": 0.1664
}

Semantic roles & 50–950 ramp

primary
#21831C
secondary
#B145B6
accent
#40E8E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21831C

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

Preview Lab → · Contrast checker → · Palette generator →

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