#21821B#21821B

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

Color values

HEX#21821B
RGBrgb(33, 130, 27)
HSLhsl(117, 66%, 31%)
HSVhsv(117, 79%, 51%)
CMYKcmyk(74.6%, 0%, 79.2%, 49%)
CIE-LABlab(47.45, -47.24, 44.44)
CIE-LCHlch(47.45, 64.86, 136.75°)
OKLaboklab(53.15% -0.1285 0.0996)
OKLCHoklch(53.15% 0.163 142.2)
XYZxyz(8.8071, 16.3667, 3.7316)
Luminance0.1637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21821B #7C1B82
analogous
#54821B #21821B #1B8248
triadic
#21821B #1B2182 #821B21
tetradic
#21821B #1B5482 #7C1B82 #82481B
square
#21821B #1B5482 #7C1B82 #82481B
split-complementary
#21821B #481B82 #821B54
monochromatic
#071D06 #144F10 #21821B #2EB526 #49D740

Accessibility & contrast

On white

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

On black

4.27
#21821B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21821B#FFFFFF#000000##FFFFFF
##21821B1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857502
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21821b;
/* rgb */ color: rgb(33, 130, 27);
/* oklch */ color: oklch(53.2% 0.163 142.2);
Tailwind
colors: {
  custom: {
    50: '#6da760',
    500: '#21821b',
    950: '#000000',
  },
}
SCSS
$custom: #21821b;
$custom-light: #6da760;
$custom-dark: #000000;
JSON
{
  "hex": "#21821b",
  "rgb": {
    "r": 33,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 116.505,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53152,
    "c": 0.16264,
    "h": 142.2
  },
  "luminance": 0.16368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21821B

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

Preview Lab → · Contrast checker → · Palette generator →

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