#21821E#21821E

#21821E is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.2% C 0.161 H 142.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#21821E
RGBrgb(33, 130, 30)
HSLhsl(118, 63%, 31%)
HSVhsv(118, 77%, 51%)
CMYKcmyk(74.6%, 0%, 76.9%, 49%)
CIE-LABlab(47.47, -47.01, 43.37)
CIE-LCHlch(47.47, 63.96, 137.31°)
OKLaboklab(53.17% -0.1278 0.0978)
OKLCHoklch(53.17% 0.161 142.6)
XYZxyz(8.8436, 16.3813, 3.9239)
Luminance0.1638 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21821E #7F1E82
analogous
#53821E #21821E #1E824D
triadic
#21821E #1E2182 #821E21
tetradic
#21821E #1E5382 #7F1E82 #824D1E
square
#21821E #1E5382 #7F1E82 #824D1E
split-complementary
#21821E #4D1E82 #821E53
monochromatic
#081F07 #145013 #21821E #2EB429 #4AD446

Accessibility & contrast

On white

4.91
#21821E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#21821E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21821E
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21821E#FFFFFF#000000##FFFFFF
##21821E1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857509
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21821e;
/* rgb */ color: rgb(33, 130, 30);
/* oklch */ color: oklch(53.2% 0.161 142.6);
Tailwind
colors: {
  custom: {
    50: '#6da761',
    500: '#21821e',
    950: '#000000',
  },
}
SCSS
$custom: #21821e;
$custom-light: #6da761;
$custom-dark: #000000;
JSON
{
  "hex": "#21821e",
  "rgb": {
    "r": 33,
    "g": 130,
    "b": 30
  },
  "hsl": {
    "h": 118.2,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53173,
    "c": 0.16094,
    "h": 142.6
  },
  "luminance": 0.16382
}

Semantic roles & 50–950 ramp

primary
#21821E
secondary
#B247B5
accent
#42E6E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21821E

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

Preview Lab → · Contrast checker → · Palette generator →

#21821E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva