#21851C#21851C

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

Color values

HEX#21851C
RGBrgb(33, 133, 28)
HSLhsl(117, 65%, 32%)
HSVhsv(117, 79%, 52%)
CMYKcmyk(75.2%, 0%, 78.9%, 47.8%)
CIE-LABlab(48.49, -48.19, 45.10)
CIE-LCHlch(48.49, 66.00, 136.90°)
OKLaboklab(54.01% -0.1311 0.1012)
OKLCHoklch(54.01% 0.166 142.3)
XYZxyz(9.2238, 17.1812, 3.9286)
Luminance0.1718 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21851C #801C85
analogous
#56851C #21851C #1C854C
triadic
#21851C #1C2185 #851C21
tetradic
#21851C #1C5685 #801C85 #854C1C
square
#21851C #1C5685 #801C85 #854C1C
split-complementary
#21851C #4C1C85 #851C56
monochromatic
#082007 #145211 #21851C #2EB827 #4BD844

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21851C#FFFFFF#000000##FFFFFF
##21851C1.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)
#887803
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21851c;
/* rgb */ color: rgb(33, 133, 28);
/* oklch */ color: oklch(54.0% 0.166 142.3);
Tailwind
colors: {
  custom: {
    50: '#6eaa61',
    500: '#21851c',
    950: '#000000',
  },
}
SCSS
$custom: #21851c;
$custom-light: #6eaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#21851c",
  "rgb": {
    "r": 33,
    "g": 133,
    "b": 28
  },
  "hsl": {
    "h": 117.143,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.16558,
    "h": 142.3
  },
  "luminance": 0.17182
}

Semantic roles & 50–950 ramp

primary
#21851C
secondary
#B345B8
accent
#40E8E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21851C

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

Preview Lab → · Contrast checker → · Palette generator →

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