#21811C#21811C

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

Color values

HEX#21811C
RGBrgb(33, 129, 28)
HSLhsl(117, 64%, 31%)
HSVhsv(117, 78%, 51%)
CMYKcmyk(74.4%, 0%, 78.3%, 49.4%)
CIE-LABlab(47.11, -46.82, 43.75)
CIE-LCHlch(47.11, 64.08, 136.94°)
OKLaboklab(52.87% -0.1274 0.0984)
OKLCHoklch(52.87% 0.161 142.3)
XYZxyz(8.6865, 16.1067, 3.7495)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21811C #7C1C81
analogous
#53811C #21811C #1C8149
triadic
#21811C #1C2181 #811C21
tetradic
#21811C #1C5381 #7C1C81 #81491C
square
#21811C #1C5381 #7C1C81 #81491C
split-complementary
#21811C #491C81 #811C53
monochromatic
#071C06 #144F11 #21811C #2EB327 #49D642

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21811C#FFFFFF#000000##FFFFFF
##21811C1.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)
#847405
Deuteranopia (green-blind)
#796D27
Tritanopia (blue-blind)
#017D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #21811c;
/* rgb */ color: rgb(33, 129, 28);
/* oklch */ color: oklch(52.9% 0.161 142.3);
Tailwind
colors: {
  custom: {
    50: '#6da760',
    500: '#21811c',
    950: '#000000',
  },
}
SCSS
$custom: #21811c;
$custom-light: #6da760;
$custom-dark: #000000;
JSON
{
  "hex": "#21811c",
  "rgb": {
    "r": 33,
    "g": 129,
    "b": 28
  },
  "hsl": {
    "h": 117.03,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52873,
    "c": 0.16092,
    "h": 142.3
  },
  "luminance": 0.16108
}

Semantic roles & 50–950 ramp

primary
#21811C
secondary
#AF44B4
accent
#40E7DF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #21811C

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

Preview Lab → · Contrast checker → · Palette generator →

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