#21841B#21841B

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

Color values

HEX#21841B
RGBrgb(33, 132, 27)
HSLhsl(117, 66%, 31%)
HSVhsv(117, 80%, 52%)
CMYKcmyk(75%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.14, -47.93, 45.10)
CIE-LCHlch(48.14, 65.81, 136.74°)
OKLaboklab(53.72% -0.1304 0.101)
OKLCHoklch(53.72% 0.165 142.2)
XYZxyz(9.0758, 16.9040, 3.8212)
Luminance0.1691 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21841B #7E1B84
analogous
#55841B #21841B #1B8449
triadic
#21841B #1B2184 #841B21
tetradic
#21841B #1B5584 #7E1B84 #84491B
square
#21841B #1B5584 #7E1B84 #84491B
split-complementary
#21841B #491B84 #841B55
monochromatic
#081E06 #145111 #21841B #2EB725 #4AD841

Accessibility & contrast

On white

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

On black

4.38
#21841B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21841B#FFFFFF#000000##FFFFFF
##21841B1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#008070
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #21841b;
/* rgb */ color: rgb(33, 132, 27);
/* oklch */ color: oklch(53.7% 0.165 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ea960',
    500: '#21841b',
    950: '#000000',
  },
}
SCSS
$custom: #21841b;
$custom-light: #6ea960;
$custom-dark: #000000;
JSON
{
  "hex": "#21841b",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 116.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53722,
    "c": 0.16496,
    "h": 142.2
  },
  "luminance": 0.16905
}

Semantic roles & 50–950 ramp

primary
#21841B
secondary
#B143B7
accent
#3FE9DF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21841B

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

Preview Lab → · Contrast checker → · Palette generator →

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