#21841F#21841F

#21841F is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.8% C 0.163 H 142.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#21841F
RGBrgb(33, 132, 31)
HSLhsl(119, 62%, 32%)
HSVhsv(119, 77%, 52%)
CMYKcmyk(75%, 0%, 76.5%, 48.2%)
CIE-LABlab(48.16, -47.62, 43.69)
CIE-LCHlch(48.16, 64.63, 137.46°)
OKLaboklab(53.75% -0.1294 0.0987)
OKLCHoklch(53.75% 0.163 142.7)
XYZxyz(9.1252, 16.9238, 4.0818)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21841F #821F84
analogous
#54841F #21841F #1F8450
triadic
#21841F #1F2184 #841F21
tetradic
#21841F #1F5484 #821F84 #84501F
square
#21841F #1F5484 #821F84 #84501F
split-complementary
#21841F #501F84 #841F54
monochromatic
#082108 #155213 #21841F #2DB62B #4CD449

Accessibility & contrast

On white

4.79
#21841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#21841F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21841F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21841F#FFFFFF#000000##FFFFFF
##21841F1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7C6F2A
Tritanopia (blue-blind)
#008071
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #21841f;
/* rgb */ color: rgb(33, 132, 31);
/* oklch */ color: oklch(53.8% 0.163 142.7);
Tailwind
colors: {
  custom: {
    50: '#6da962',
    500: '#21841f',
    950: '#000000',
  },
}
SCSS
$custom: #21841f;
$custom-light: #6da962;
$custom-dark: #000000;
JSON
{
  "hex": "#21841f",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 118.812,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53751,
    "c": 0.16269,
    "h": 142.7
  },
  "luminance": 0.16925
}

Semantic roles & 50–950 ramp

primary
#21841F
secondary
#B448B7
accent
#43E5E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21841F

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

Preview Lab → · Contrast checker → · Palette generator →

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