#21851A#21851A

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

Color values

HEX#21851A
RGBrgb(33, 133, 26)
HSLhsl(116, 67%, 31%)
HSVhsv(116, 80%, 52%)
CMYKcmyk(75.2%, 0%, 80.5%, 47.8%)
CIE-LABlab(48.48, -48.34, 45.77)
CIE-LCHlch(48.48, 66.57, 136.56°)
OKLaboklab(54% -0.1316 0.1023)
OKLCHoklch(54% 0.167 142.1)
XYZxyz(9.2006, 17.1719, 3.8067)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21851A #7E1A85
analogous
#56851A #21851A #1A8548
triadic
#21851A #1A2185 #851A21
tetradic
#21851A #1A5685 #7E1A85 #85481A
square
#21851A #1A5685 #7E1A85 #85481A
split-complementary
#21851A #481A85 #851A56
monochromatic
#081F06 #145210 #21851A #2EB824 #4ADA40

Accessibility & contrast

On white

4.74
#21851A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#21851A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21851A
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21851A#FFFFFF#000000##FFFFFF
##21851A1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21851a;
/* rgb */ color: rgb(33, 133, 26);
/* oklch */ color: oklch(54.0% 0.167 142.1);
Tailwind
colors: {
  custom: {
    50: '#6eaa60',
    500: '#21851a',
    950: '#000000',
  },
}
SCSS
$custom: #21851a;
$custom-light: #6eaa60;
$custom-dark: #000000;
JSON
{
  "hex": "#21851a",
  "rgb": {
    "r": 33,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 116.075,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54,
    "c": 0.16663,
    "h": 142.1
  },
  "luminance": 0.17173
}

Semantic roles & 50–950 ramp

primary
#21851A
secondary
#B142B8
accent
#3EEADF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21851A

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

Preview Lab → · Contrast checker → · Palette generator →

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