#21842E#21842E

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

Color values

HEX#21842E
RGBrgb(33, 132, 46)
HSLhsl(128, 60%, 32%)
HSVhsv(128, 75%, 52%)
CMYKcmyk(75%, 0%, 65.2%, 48.2%)
CIE-LABlab(48.29, -46.12, 37.47)
CIE-LCHlch(48.29, 59.42, 140.91°)
OKLaboklab(53.89% -0.1246 0.0874)
OKLCHoklch(53.89% 0.152 144.9)
XYZxyz(9.3710, 17.0221, 5.3760)
Luminance0.1702 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21842E #842177
analogous
#458421 #21842E #218460
triadic
#21842E #2E2184 #842E21
tetradic
#21842E #214584 #842177 #846021
square
#21842E #214584 #842177 #846021
split-complementary
#21842E #602184 #842145
monochromatic
#09220C #15531D #21842E #2DB53F #4DD25E

Accessibility & contrast

On white

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

On black

4.40
#21842E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21842E#FFFFFF#000000##FFFFFF
##21842E1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867724
Deuteranopia (green-blind)
#7B7035
Tritanopia (blue-blind)
#008072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21842e;
/* rgb */ color: rgb(33, 132, 46);
/* oklch */ color: oklch(53.9% 0.152 144.9);
Tailwind
colors: {
  custom: {
    50: '#6da96a',
    500: '#21842e',
    950: '#000000',
  },
}
SCSS
$custom: #21842e;
$custom-light: #6da96a;
$custom-dark: #000000;
JSON
{
  "hex": "#21842e",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 127.879,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53894,
    "c": 0.15218,
    "h": 144.9
  },
  "luminance": 0.17023
}

Semantic roles & 50–950 ramp

primary
#21842E
secondary
#B64BA8
accent
#45CEE3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21842E

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

Preview Lab → · Contrast checker → · Palette generator →

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