#21831F#21831F

#21831F is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.5% C 0.162 H 142.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#21831F
RGBrgb(33, 131, 31)
HSLhsl(119, 62%, 32%)
HSVhsv(119, 76%, 51%)
CMYKcmyk(74.8%, 0%, 76.3%, 48.6%)
CIE-LABlab(47.82, -47.28, 43.35)
CIE-LCHlch(47.82, 64.14, 137.48°)
OKLaboklab(53.47% -0.1284 0.0979)
OKLCHoklch(53.47% 0.162 142.7)
XYZxyz(8.9903, 16.6539, 4.0368)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21831F #811F83
analogous
#53831F #21831F #1F834F
triadic
#21831F #1F2183 #831F21
tetradic
#21831F #1F5383 #811F83 #834F1F
square
#21831F #1F5383 #811F83 #834F1F
split-complementary
#21831F #4F1F83 #831F53
monochromatic
#082008 #155213 #21831F #2DB42B #4BD449

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21831F#FFFFFF#000000##FFFFFF
##21831F1.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)
#86760B
Deuteranopia (green-blind)
#7B6F2A
Tritanopia (blue-blind)
#007F70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21831f;
/* rgb */ color: rgb(33, 131, 31);
/* oklch */ color: oklch(53.5% 0.162 142.7);
Tailwind
colors: {
  custom: {
    50: '#6da862',
    500: '#21831f',
    950: '#000000',
  },
}
SCSS
$custom: #21831f;
$custom-light: #6da862;
$custom-dark: #000000;
JSON
{
  "hex": "#21831f",
  "rgb": {
    "r": 33,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 118.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53466,
    "c": 0.16152,
    "h": 142.7
  },
  "luminance": 0.16655
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21831F

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

Preview Lab → · Contrast checker → · Palette generator →

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