#21821F#21821F

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

Color values

HEX#21821F
RGBrgb(33, 130, 31)
HSLhsl(119, 61%, 32%)
HSVhsv(119, 76%, 51%)
CMYKcmyk(74.6%, 0%, 76.2%, 49%)
CIE-LABlab(47.48, -46.93, 43.00)
CIE-LCHlch(47.48, 63.65, 137.50°)
OKLaboklab(53.18% -0.1275 0.0972)
OKLCHoklch(53.18% 0.16 142.7)
XYZxyz(8.8566, 16.3865, 3.9922)
Luminance0.1639 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21821F #801F82
analogous
#53821F #21821F #1F824F
triadic
#21821F #1F2182 #821F21
tetradic
#21821F #1F5382 #801F82 #824F1F
square
#21821F #1F5382 #801F82 #824F1F
split-complementary
#21821F #4F1F82 #821F53
monochromatic
#081F07 #145113 #21821F #2EB32B #4BD348

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21821F#FFFFFF#000000##FFFFFF
##21821F1.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)
#85750C
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21821f;
/* rgb */ color: rgb(33, 130, 31);
/* oklch */ color: oklch(53.2% 0.160 142.7);
Tailwind
colors: {
  custom: {
    50: '#6da762',
    500: '#21821f',
    950: '#000000',
  },
}
SCSS
$custom: #21821f;
$custom-light: #6da762;
$custom-dark: #000000;
JSON
{
  "hex": "#21821f",
  "rgb": {
    "r": 33,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 118.788,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53181,
    "c": 0.16033,
    "h": 142.7
  },
  "luminance": 0.16388
}

Semantic roles & 50–950 ramp

primary
#21821F
secondary
#B348B5
accent
#43E5E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21821F

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

Preview Lab → · Contrast checker → · Palette generator →

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