#21801F#21801F

#21801F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.6% C 0.158 H 142.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#21801F
RGBrgb(33, 128, 31)
HSLhsl(119, 61%, 31%)
HSVhsv(119, 76%, 50%)
CMYKcmyk(74.2%, 0%, 75.8%, 49.8%)
CIE-LABlab(46.79, -46.24, 42.31)
CIE-LCHlch(46.79, 62.67, 137.54°)
OKLaboklab(52.61% -0.1256 0.0958)
OKLCHoklch(52.61% 0.158 142.7)
XYZxyz(8.5932, 15.8596, 3.9044)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21801F #7E1F80
analogous
#51801F #21801F #1F804D
triadic
#21801F #1F2180 #801F21
tetradic
#21801F #1F5180 #7E1F80 #804D1F
square
#21801F #1F5180 #7E1F80 #804D1F
split-complementary
#21801F #4D1F80 #801F51
monochromatic
#081D07 #144F13 #21801F #2EB12B #4AD247

Accessibility & contrast

On white

5.03
#21801F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#21801F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21801F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21801F#FFFFFF#000000##FFFFFF
##21801F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #21801f;
/* rgb */ color: rgb(33, 128, 31);
/* oklch */ color: oklch(52.6% 0.158 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ca661',
    500: '#21801f',
    950: '#000000',
  },
}
SCSS
$custom: #21801f;
$custom-light: #6ca661;
$custom-dark: #000000;
JSON
{
  "hex": "#21801f",
  "rgb": {
    "r": 33,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 118.763,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5261,
    "c": 0.15796,
    "h": 142.7
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#21801F
secondary
#B148B3
accent
#44E4E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #21801F

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

Preview Lab → · Contrast checker → · Palette generator →

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