#21981F#21981F

#21981F is a mid, vivid green. Relative luminance 0.229; OKLCH L 59.4% C 0.185 H 142.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#21981F
RGBrgb(33, 152, 31)
HSLhsl(119, 66%, 36%)
HSVhsv(119, 80%, 60%)
CMYKcmyk(78.3%, 0%, 79.6%, 40.4%)
CIE-LABlab(54.95, -54.26, 50.35)
CIE-LCHlch(54.95, 74.02, 137.14°)
OKLaboklab(59.39% -0.1474 0.1125)
OKLCHoklch(59.39% 0.185 142.6)
XYZxyz(12.1020, 22.8773, 5.0740)
Luminance0.2288 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21981F #961F98
analogous
#5D981F #21981F #1F9859
triadic
#21981F #1F2198 #981F21
tetradic
#21981F #1F5D98 #961F98 #98591F
square
#21981F #1F5D98 #961F98 #98591F
split-complementary
#21981F #591F98 #981F5D
monochromatic
#0B320A #166515 #21981F #2CCB29 #57DC55

Accessibility & contrast

On white

3.77
#21981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#21981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21981F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21981F#FFFFFF#000000##000000
##21981F1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#8F802D
Tritanopia (blue-blind)
#009381
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #21981f;
/* rgb */ color: rgb(33, 152, 31);
/* oklch */ color: oklch(59.4% 0.185 142.6);
Tailwind
colors: {
  custom: {
    50: '#72b765',
    500: '#21981f',
    950: '#000000',
  },
}
SCSS
$custom: #21981f;
$custom-light: #72b765;
$custom-dark: #000000;
JSON
{
  "hex": "#21981f",
  "rgb": {
    "r": 33,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 119.008,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59387,
    "c": 0.18542,
    "h": 142.6
  },
  "luminance": 0.22879
}

Semantic roles & 50–950 ramp

primary
#21981F
secondary
#BE53C0
accent
#3FE9E6
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #21981F

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

Preview Lab → · Contrast checker → · Palette generator →

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