#21871E#21871E

#21871E is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.167 H 142.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#21871E
RGBrgb(33, 135, 30)
HSLhsl(118, 64%, 32%)
HSVhsv(118, 78%, 53%)
CMYKcmyk(75.6%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.18, -48.72, 45.07)
CIE-LCHlch(49.18, 66.37, 137.23°)
OKLaboklab(54.6% -0.1324 0.1014)
OKLCHoklch(54.6% 0.167 142.6)
XYZxyz(9.5249, 17.7439, 4.1510)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21871E #841E87
analogous
#55871E #21871E #1E8750
triadic
#21871E #1E2187 #871E21
tetradic
#21871E #1E5587 #841E87 #87501E
square
#21871E #1E5587 #841E87 #87501E
split-complementary
#21871E #501E87 #871E55
monochromatic
#092308 #155513 #21871E #2DB929 #4DD749

Accessibility & contrast

On white

4.62
#21871E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#21871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #21871E
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21871E#FFFFFF#000000##FFFFFF
##21871E1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A06
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21871e;
/* rgb */ color: rgb(33, 135, 30);
/* oklch */ color: oklch(54.6% 0.167 142.6);
Tailwind
colors: {
  custom: {
    50: '#6eab62',
    500: '#21871e',
    950: '#000000',
  },
}
SCSS
$custom: #21871e;
$custom-light: #6eab62;
$custom-dark: #000000;
JSON
{
  "hex": "#21871e",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 118.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54596,
    "c": 0.16678,
    "h": 142.6
  },
  "luminance": 0.17745
}

Semantic roles & 50–950 ramp

primary
#21871E
secondary
#B648B9
accent
#41E7E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21871E

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

Preview Lab → · Contrast checker → · Palette generator →

#21871E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva