#21881F#21881F

#21881F is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.167 H 142.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#21881F
RGBrgb(33, 136, 31)
HSLhsl(119, 63%, 33%)
HSVhsv(119, 77%, 53%)
CMYKcmyk(75.7%, 0%, 77.2%, 46.7%)
CIE-LABlab(49.53, -48.98, 45.06)
CIE-LCHlch(49.53, 66.55, 137.39°)
OKLaboklab(54.89% -0.1331 0.1015)
OKLCHoklch(54.89% 0.167 142.7)
XYZxyz(9.6781, 18.0295, 4.2660)
Luminance0.1803 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21881F #861F88
analogous
#55881F #21881F #1F8851
triadic
#21881F #1F2188 #881F21
tetradic
#21881F #1F5588 #861F88 #88511F
square
#21881F #1F5588 #861F88 #88511F
split-complementary
#21881F #511F88 #881F55
monochromatic
#092408 #155614 #21881F #2DBA2A #4ED64B

Accessibility & contrast

On white

4.56
#21881F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#21881F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21881F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21881F#FFFFFF#000000##000000
##21881F1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B08
Deuteranopia (green-blind)
#80732B
Tritanopia (blue-blind)
#008474
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #21881f;
/* rgb */ color: rgb(33, 136, 31);
/* oklch */ color: oklch(54.9% 0.167 142.7);
Tailwind
colors: {
  custom: {
    50: '#6eac62',
    500: '#21881f',
    950: '#000000',
  },
}
SCSS
$custom: #21881f;
$custom-light: #6eac62;
$custom-dark: #000000;
JSON
{
  "hex": "#21881f",
  "rgb": {
    "r": 33,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 118.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.16736,
    "h": 142.7
  },
  "luminance": 0.18031
}

Semantic roles & 50–950 ramp

primary
#21881F
secondary
#B74AB9
accent
#42E6E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21881F

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

Preview Lab → · Contrast checker → · Palette generator →

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