#21831A#21831A

#21831A is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.4% C 0.164 H 142.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#21831A
RGBrgb(33, 131, 26)
HSLhsl(116, 67%, 31%)
HSVhsv(116, 80%, 51%)
CMYKcmyk(74.8%, 0%, 80.2%, 48.6%)
CIE-LABlab(47.79, -47.66, 45.11)
CIE-LCHlch(47.79, 65.62, 136.57°)
OKLaboklab(53.43% -0.1297 0.1009)
OKLCHoklch(53.43% 0.164 142.1)
XYZxyz(8.9294, 16.6295, 3.7163)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21831A #7C1A83
analogous
#55831A #21831A #1A8347
triadic
#21831A #1A2183 #831A21
tetradic
#21831A #1A5583 #7C1A83 #83471A
square
#21831A #1A5583 #7C1A83 #83471A
split-complementary
#21831A #471A83 #831A55
monochromatic
#071D06 #145010 #21831A #2EB624 #49D93F

Accessibility & contrast

On white

4.85
#21831A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#21831A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21831A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21831A#FFFFFF#000000##FFFFFF
##21831A1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#007F6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21831a;
/* rgb */ color: rgb(33, 131, 26);
/* oklch */ color: oklch(53.4% 0.164 142.1);
Tailwind
colors: {
  custom: {
    50: '#6da85f',
    500: '#21831a',
    950: '#000000',
  },
}
SCSS
$custom: #21831a;
$custom-light: #6da85f;
$custom-dark: #000000;
JSON
{
  "hex": "#21831a",
  "rgb": {
    "r": 33,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 116,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5343,
    "c": 0.16434,
    "h": 142.1
  },
  "luminance": 0.16631
}

Semantic roles & 50–950 ramp

primary
#21831A
secondary
#AF42B7
accent
#3EEADE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21831A

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

Preview Lab → · Contrast checker → · Palette generator →

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