#21821C#21821C

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

Color values

HEX#21821C
RGBrgb(33, 130, 28)
HSLhsl(117, 65%, 31%)
HSVhsv(117, 78%, 51%)
CMYKcmyk(74.6%, 0%, 78.5%, 49%)
CIE-LABlab(47.46, -47.17, 44.09)
CIE-LCHlch(47.46, 64.57, 136.93°)
OKLaboklab(53.16% -0.1283 0.0991)
OKLCHoklch(53.16% 0.162 142.3)
XYZxyz(8.8189, 16.3715, 3.7936)
Luminance0.1637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21821C #7D1C82
analogous
#54821C #21821C #1C824A
triadic
#21821C #1C2182 #821C21
tetradic
#21821C #1C5482 #7D1C82 #824A1C
square
#21821C #1C5482 #7D1C82 #824A1C
split-complementary
#21821C #4A1C82 #821C54
monochromatic
#071D06 #145011 #21821C #2EB427 #49D642

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21821C#FFFFFF#000000##FFFFFF
##21821C1.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)
#857505
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #21821c;
/* rgb */ color: rgb(33, 130, 28);
/* oklch */ color: oklch(53.2% 0.162 142.3);
Tailwind
colors: {
  custom: {
    50: '#6da760',
    500: '#21821c',
    950: '#000000',
  },
}
SCSS
$custom: #21821c;
$custom-light: #6da760;
$custom-dark: #000000;
JSON
{
  "hex": "#21821c",
  "rgb": {
    "r": 33,
    "g": 130,
    "b": 28
  },
  "hsl": {
    "h": 117.059,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53159,
    "c": 0.16209,
    "h": 142.3
  },
  "luminance": 0.16372
}

Semantic roles & 50–950 ramp

primary
#21821C
secondary
#B044B5
accent
#40E8DF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21821C

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

Preview Lab → · Contrast checker → · Palette generator →

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