#21851F#21851F

#21851F is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.0% C 0.164 H 142.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#21851F
RGBrgb(33, 133, 31)
HSLhsl(119, 62%, 32%)
HSVhsv(119, 77%, 52%)
CMYKcmyk(75.2%, 0%, 76.7%, 47.8%)
CIE-LABlab(48.51, -47.96, 44.03)
CIE-LCHlch(48.51, 65.11, 137.44°)
OKLaboklab(54.04% -0.1303 0.0994)
OKLCHoklch(54.04% 0.164 142.7)
XYZxyz(9.2615, 17.1963, 4.1272)
Luminance0.1720 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21851F #831F85
analogous
#54851F #21851F #1F8550
triadic
#21851F #1F2185 #851F21
tetradic
#21851F #1F5485 #831F85 #85501F
square
#21851F #1F5485 #831F85 #85501F
split-complementary
#21851F #501F85 #851F54
monochromatic
#082208 #155313 #21851F #2DB72B #4CD54A

Accessibility & contrast

On white

4.73
#21851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#21851F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21851F
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21851F#FFFFFF#000000##FFFFFF
##21851F1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21851f;
/* rgb */ color: rgb(33, 133, 31);
/* oklch */ color: oklch(54.0% 0.164 142.7);
Tailwind
colors: {
  custom: {
    50: '#6eaa62',
    500: '#21851f',
    950: '#000000',
  },
}
SCSS
$custom: #21851f;
$custom-light: #6eaa62;
$custom-dark: #000000;
JSON
{
  "hex": "#21851f",
  "rgb": {
    "r": 33,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 118.824,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54035,
    "c": 0.16387,
    "h": 142.7
  },
  "luminance": 0.17197
}

Semantic roles & 50–950 ramp

primary
#21851F
secondary
#B549B7
accent
#43E5E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21851F

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

Preview Lab → · Contrast checker → · Palette generator →

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