#21842F#21842F

#21842F is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.151 H 145.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#21842F
RGBrgb(33, 132, 47)
HSLhsl(128, 60%, 32%)
HSVhsv(128, 75%, 52%)
CMYKcmyk(75%, 0%, 64.4%, 48.2%)
CIE-LABlab(48.30, -46.00, 37.01)
CIE-LCHlch(48.30, 59.04, 141.18°)
OKLaboklab(53.91% -0.1242 0.0865)
OKLCHoklch(53.91% 0.151 145.1)
XYZxyz(9.3909, 17.0300, 5.4810)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21842F #842176
analogous
#448421 #21842F #218461
triadic
#21842F #2F2184 #842F21
tetradic
#21842F #214484 #842176 #846121
square
#21842F #214484 #842176 #846121
split-complementary
#21842F #612184 #842144
monochromatic
#09220C #15531E #21842F #2DB540 #4DD260

Accessibility & contrast

On white

4.77
#21842F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#21842F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21842F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21842F#FFFFFF#000000##FFFFFF
##21842F1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867725
Deuteranopia (green-blind)
#7B7036
Tritanopia (blue-blind)
#008172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21842f;
/* rgb */ color: rgb(33, 132, 47);
/* oklch */ color: oklch(53.9% 0.151 145.1);
Tailwind
colors: {
  custom: {
    50: '#6da96b',
    500: '#21842f',
    950: '#000000',
  },
}
SCSS
$custom: #21842f;
$custom-light: #6da96b;
$custom-dark: #000000;
JSON
{
  "hex": "#21842f",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 128.485,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53905,
    "c": 0.15138,
    "h": 145.1
  },
  "luminance": 0.17031
}

Semantic roles & 50–950 ramp

primary
#21842F
secondary
#B64BA7
accent
#45CDE3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21842F

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

Preview Lab → · Contrast checker → · Palette generator →

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