#21851B#21851B

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

Color values

HEX#21851B
RGBrgb(33, 133, 27)
HSLhsl(117, 66%, 31%)
HSVhsv(117, 80%, 52%)
CMYKcmyk(75.2%, 0%, 79.7%, 47.8%)
CIE-LABlab(48.48, -48.27, 45.44)
CIE-LCHlch(48.48, 66.29, 136.73°)
OKLaboklab(54.01% -0.1313 0.1017)
OKLCHoklch(54.01% 0.166 142.2)
XYZxyz(9.2120, 17.1765, 3.8666)
Luminance0.1718 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21851B #7F1B85
analogous
#56851B #21851B #1B854A
triadic
#21851B #1B2185 #851B21
tetradic
#21851B #1B5685 #7F1B85 #854A1B
square
#21851B #1B5685 #7F1B85 #854A1B
split-complementary
#21851B #4A1B85 #851B56
monochromatic
#081F06 #145211 #21851B #2EB825 #4AD942

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21851B#FFFFFF#000000##FFFFFF
##21851B1.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)
#887801
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21851b;
/* rgb */ color: rgb(33, 133, 27);
/* oklch */ color: oklch(54.0% 0.166 142.2);
Tailwind
colors: {
  custom: {
    50: '#6eaa60',
    500: '#21851b',
    950: '#000000',
  },
}
SCSS
$custom: #21851b;
$custom-light: #6eaa60;
$custom-dark: #000000;
JSON
{
  "hex": "#21851b",
  "rgb": {
    "r": 33,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 116.604,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54007,
    "c": 0.16611,
    "h": 142.2
  },
  "luminance": 0.17178
}

Semantic roles & 50–950 ramp

primary
#21851B
secondary
#B244B8
accent
#3FE9E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21851B

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

Preview Lab → · Contrast checker → · Palette generator →

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