#21811F#21811F

#21811F is a mid, vivid green. Relative luminance 0.161; OKLCH L 52.9% C 0.159 H 142.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#21811F
RGBrgb(33, 129, 31)
HSLhsl(119, 61%, 31%)
HSVhsv(119, 76%, 51%)
CMYKcmyk(74.4%, 0%, 76%, 49.4%)
CIE-LABlab(47.13, -46.58, 42.65)
CIE-LCHlch(47.13, 63.16, 137.52°)
OKLaboklab(52.9% -0.1266 0.0965)
OKLCHoklch(52.9% 0.159 142.7)
XYZxyz(8.7243, 16.1218, 3.9481)
Luminance0.1612 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21811F #7F1F81
analogous
#52811F #21811F #1F814E
triadic
#21811F #1F2181 #811F21
tetradic
#21811F #1F5281 #7F1F81 #814E1F
square
#21811F #1F5281 #7F1F81 #814E1F
split-complementary
#21811F #4E1F81 #811F52
monochromatic
#081E07 #145013 #21811F #2EB22B #4AD347

Accessibility & contrast

On white

4.97
#21811F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#21811F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21811F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21811F#FFFFFF#000000##FFFFFF
##21811F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740C
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #21811f;
/* rgb */ color: rgb(33, 129, 31);
/* oklch */ color: oklch(52.9% 0.159 142.7);
Tailwind
colors: {
  custom: {
    50: '#6da762',
    500: '#21811f',
    950: '#000000',
  },
}
SCSS
$custom: #21811f;
$custom-light: #6da762;
$custom-dark: #000000;
JSON
{
  "hex": "#21811f",
  "rgb": {
    "r": 33,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 118.776,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52896,
    "c": 0.15915,
    "h": 142.7
  },
  "luminance": 0.16123
}

Semantic roles & 50–950 ramp

primary
#21811F
secondary
#B248B4
accent
#43E4E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #21811F

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

Preview Lab → · Contrast checker → · Palette generator →

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