#21801B#21801B

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

Color values

HEX#21801B
RGBrgb(33, 128, 27)
HSLhsl(116, 65%, 30%)
HSVhsv(116, 79%, 50%)
CMYKcmyk(74.2%, 0%, 78.9%, 49.8%)
CIE-LABlab(46.76, -46.56, 43.76)
CIE-LCHlch(46.76, 63.89, 136.77°)
OKLaboklab(52.58% -0.1267 0.0982)
OKLCHoklch(52.58% 0.16 142.2)
XYZxyz(8.5437, 15.8399, 3.6438)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21801B #7A1B80
analogous
#53801B #21801B #1B8048
triadic
#21801B #1B2180 #801B21
tetradic
#21801B #1B5380 #7A1B80 #80481B
square
#21801B #1B5380 #7A1B80 #80481B
split-complementary
#21801B #481B80 #801B53
monochromatic
#071B06 #144D10 #21801B #2EB326 #48D63F

Accessibility & contrast

On white

5.04
#21801B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21801B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21801B#FFFFFF#000000##FFFFFF
##21801B1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837304
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#027C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #21801b;
/* rgb */ color: rgb(33, 128, 27);
/* oklch */ color: oklch(52.6% 0.160 142.2);
Tailwind
colors: {
  custom: {
    50: '#6da65f',
    500: '#21801b',
    950: '#000000',
  },
}
SCSS
$custom: #21801b;
$custom-light: #6da65f;
$custom-dark: #000000;
JSON
{
  "hex": "#21801b",
  "rgb": {
    "r": 33,
    "g": 128,
    "b": 27
  },
  "hsl": {
    "h": 116.436,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5258,
    "c": 0.16031,
    "h": 142.2
  },
  "luminance": 0.15841
}

Semantic roles & 50–950 ramp

primary
#21801B
secondary
#AD43B4
accent
#40E8DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #21801B

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

Preview Lab → · Contrast checker → · Palette generator →

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