#21871F#21871F

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

Color values

HEX#21871F
RGBrgb(33, 135, 31)
HSLhsl(119, 63%, 33%)
HSVhsv(119, 77%, 53%)
CMYKcmyk(75.6%, 0%, 77%, 47.1%)
CIE-LABlab(49.19, -48.64, 44.72)
CIE-LCHlch(49.19, 66.07, 137.41°)
OKLaboklab(54.6% -0.1321 0.1008)
OKLCHoklch(54.6% 0.166 142.7)
XYZxyz(9.5379, 17.7491, 4.2193)
Luminance0.1775 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21871F #851F87
analogous
#55871F #21871F #1F8751
triadic
#21871F #1F2187 #871F21
tetradic
#21871F #1F5587 #851F87 #87511F
square
#21871F #1F5587 #851F87 #87511F
split-complementary
#21871F #511F87 #871F55
monochromatic
#092308 #155514 #21871F #2DB92A #4DD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21871F#FFFFFF#000000##FFFFFF
##21871F1.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)
#8A7A09
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21871f;
/* rgb */ color: rgb(33, 135, 31);
/* oklch */ color: oklch(54.6% 0.166 142.7);
Tailwind
colors: {
  custom: {
    50: '#6eab62',
    500: '#21871f',
    950: '#000000',
  },
}
SCSS
$custom: #21871f;
$custom-light: #6eab62;
$custom-dark: #000000;
JSON
{
  "hex": "#21871f",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 118.846,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54603,
    "c": 0.1662,
    "h": 142.7
  },
  "luminance": 0.1775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21871F

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

Preview Lab → · Contrast checker → · Palette generator →

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