#21812B#21812B

#21812B is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.0% C 0.151 H 144.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#21812B
RGBrgb(33, 129, 43)
HSLhsl(126, 59%, 32%)
HSVhsv(126, 74%, 51%)
CMYKcmyk(74.4%, 0%, 66.7%, 49.4%)
CIE-LABlab(47.23, -45.39, 37.68)
CIE-LCHlch(47.23, 59.00, 140.30°)
OKLaboklab(53.01% -0.1227 0.0876)
OKLCHoklch(53.01% 0.151 144.5)
XYZxyz(8.9129, 16.1973, 4.9417)
Luminance0.1620 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21812B #812177
analogous
#478121 #21812B #21815B
triadic
#21812B #2B2181 #812B21
tetradic
#21812B #214781 #812177 #815B21
square
#21812B #214781 #812177 #815B21
split-complementary
#21812B #5B2181 #812147
monochromatic
#08200B #15501B #21812B #2DB23B #4BD159

Accessibility & contrast

On white

4.95
#21812B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#21812B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21812B
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21812B#FFFFFF#000000##FFFFFF
##21812B1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837520
Deuteranopia (green-blind)
#786D33
Tritanopia (blue-blind)
#007D6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #21812b;
/* rgb */ color: rgb(33, 129, 43);
/* oklch */ color: oklch(53.0% 0.151 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ca768',
    500: '#21812b',
    950: '#000000',
  },
}
SCSS
$custom: #21812b;
$custom-light: #6ca768;
$custom-dark: #000000;
JSON
{
  "hex": "#21812b",
  "rgb": {
    "r": 33,
    "g": 129,
    "b": 43
  },
  "hsl": {
    "h": 126.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53009,
    "c": 0.15077,
    "h": 144.5
  },
  "luminance": 0.16198
}

Semantic roles & 50–950 ramp

primary
#21812B
secondary
#B44AA9
accent
#45D2E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #21812B

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

Preview Lab → · Contrast checker → · Palette generator →

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