#21812F#21812F

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

Color values

HEX#21812F
RGBrgb(33, 129, 47)
HSLhsl(129, 59%, 32%)
HSVhsv(129, 74%, 51%)
CMYKcmyk(74.4%, 0%, 63.6%, 49.4%)
CIE-LABlab(47.27, -44.91, 35.85)
CIE-LCHlch(47.27, 57.47, 141.40°)
OKLaboklab(53.06% -0.1213 0.0841)
OKLCHoklch(53.06% 0.148 145.3)
XYZxyz(8.9899, 16.2281, 5.3473)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21812F #812173
analogous
#438121 #21812F #21815F
triadic
#21812F #2F2181 #812F21
tetradic
#21812F #214381 #812173 #815F21
square
#21812F #214381 #812173 #815F21
split-complementary
#21812F #5F2181 #812143
monochromatic
#08200B #15501D #21812F #2DB241 #4BD15F

Accessibility & contrast

On white

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

On black

4.25
#21812F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21812F#FFFFFF#000000##FFFFFF
##21812F1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837526
Deuteranopia (green-blind)
#786D36
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #21812f;
/* rgb */ color: rgb(33, 129, 47);
/* oklch */ color: oklch(53.1% 0.148 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ca76b',
    500: '#21812f',
    950: '#000000',
  },
}
SCSS
$custom: #21812f;
$custom-light: #6ca76b;
$custom-dark: #000000;
JSON
{
  "hex": "#21812f",
  "rgb": {
    "r": 33,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 128.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53055,
    "c": 0.14756,
    "h": 145.3
  },
  "luminance": 0.16229
}

Semantic roles & 50–950 ramp

primary
#21812F
secondary
#B44AA4
accent
#45CCE2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #21812F

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

Preview Lab → · Contrast checker → · Palette generator →

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