#21792D#21792D

#21792D is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.139 H 145.2°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#21792D
RGBrgb(33, 121, 45)
HSLhsl(128, 57%, 30%)
HSVhsv(128, 73%, 47%)
CMYKcmyk(72.7%, 0%, 62.8%, 52.5%)
CIE-LABlab(44.50, -42.22, 33.65)
CIE-LCHlch(44.50, 53.99, 141.45°)
OKLaboklab(50.75% -0.1141 0.0791)
OKLCHoklch(50.75% 0.139 145.2)
XYZxyz(7.9377, 14.1867, 4.8021)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21792D #79216D
analogous
#417921 #21792D #217959
triadic
#21792D #2D2179 #792D21
tetradic
#21792D #214179 #79216D #795921
square
#21792D #214179 #79216D #795921
split-complementary
#21792D #592179 #792141
monochromatic
#071909 #14491B #21792D #2EA93F #47CD5A

Accessibility & contrast

On white

5.47
#21792D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#21792D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21792D
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21792D#FFFFFF#000000##FFFFFF
##21792D1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E25
Deuteranopia (green-blind)
#716633
Tritanopia (blue-blind)
#007669
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21792d;
/* rgb */ color: rgb(33, 121, 45);
/* oklch */ color: oklch(50.8% 0.139 145.2);
Tailwind
colors: {
  custom: {
    50: '#6aa169',
    500: '#21792d',
    950: '#000000',
  },
}
SCSS
$custom: #21792d;
$custom-light: #6aa169;
$custom-dark: #000000;
JSON
{
  "hex": "#21792d",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 45
  },
  "hsl": {
    "h": 128.182,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50751,
    "c": 0.13883,
    "h": 145.2
  },
  "luminance": 0.14188
}

Semantic roles & 50–950 ramp

primary
#21792D
secondary
#AC4A9F
accent
#47CCE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #21792D

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

Preview Lab → · Contrast checker → · Palette generator →

#21792D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva