#21872A#21872A

#21872A is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.159 H 144.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#21872A
RGBrgb(33, 135, 42)
HSLhsl(125, 61%, 33%)
HSVhsv(125, 76%, 53%)
CMYKcmyk(75.6%, 0%, 68.9%, 47.1%)
CIE-LABlab(49.27, -47.63, 40.36)
CIE-LCHlch(49.27, 62.43, 139.72°)
OKLaboklab(54.7% -0.1288 0.0931)
OKLCHoklch(54.7% 0.159 144.1)
XYZxyz(9.7085, 17.8173, 5.1175)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21872A #87217E
analogous
#4B8721 #21872A #21875D
triadic
#21872A #2A2187 #872A21
tetradic
#21872A #214B87 #87217E #875D21
square
#21872A #214B87 #87217E #875D21
split-complementary
#21872A #5D2187 #87214B
monochromatic
#09250B #15561B #21872A #2DB839 #4FD45A

Accessibility & contrast

On white

4.60
#21872A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#21872A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #21872A
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21872A#FFFFFF#000000##FFFFFF
##21872A1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1E
Deuteranopia (green-blind)
#7E7233
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21872a;
/* rgb */ color: rgb(33, 135, 42);
/* oklch */ color: oklch(54.7% 0.159 144.1);
Tailwind
colors: {
  custom: {
    50: '#6eab68',
    500: '#21872a',
    950: '#000000',
  },
}
SCSS
$custom: #21872a;
$custom-light: #6eab68;
$custom-dark: #000000;
JSON
{
  "hex": "#21872a",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 42
  },
  "hsl": {
    "h": 125.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54699,
    "c": 0.15897,
    "h": 144.1
  },
  "luminance": 0.17818
}

Semantic roles & 50–950 ramp

primary
#21872A
secondary
#B74DAE
accent
#44D6E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #21872A

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

Preview Lab → · Contrast checker → · Palette generator →

#21872A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva