#21792F#21792F

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

Color values

HEX#21792F
RGBrgb(33, 121, 47)
HSLhsl(130, 57%, 30%)
HSVhsv(130, 73%, 47%)
CMYKcmyk(72.7%, 0%, 61.2%, 52.5%)
CIE-LABlab(44.52, -41.96, 32.68)
CIE-LCHlch(44.52, 53.18, 142.08°)
OKLaboklab(50.78% -0.1133 0.0772)
OKLCHoklch(50.78% 0.137 145.7)
XYZxyz(7.9771, 14.2024, 5.0097)
Luminance0.1420 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21792F #79216B
analogous
#3F7921 #21792F #21795B
triadic
#21792F #2F2179 #792F21
tetradic
#21792F #213F79 #79216B #795B21
square
#21792F #213F79 #79216B #795B21
split-complementary
#21792F #5B2179 #79213F
monochromatic
#07190A #14491C #21792F #2EA942 #47CD5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21792F#FFFFFF#000000##FFFFFF
##21792F1.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)
#7B6E27
Deuteranopia (green-blind)
#716635
Tritanopia (blue-blind)
#007669
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21792f;
/* rgb */ color: rgb(33, 121, 47);
/* oklch */ color: oklch(50.8% 0.137 145.7);
Tailwind
colors: {
  custom: {
    50: '#6aa16a',
    500: '#21792f',
    950: '#000000',
  },
}
SCSS
$custom: #21792f;
$custom-light: #6aa16a;
$custom-dark: #000000;
JSON
{
  "hex": "#21792f",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 47
  },
  "hsl": {
    "h": 129.545,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50777,
    "c": 0.13709,
    "h": 145.7
  },
  "luminance": 0.14203
}

Semantic roles & 50–950 ramp

primary
#21792F
secondary
#AC4A9C
accent
#47C8E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #21792F

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

Preview Lab → · Contrast checker → · Palette generator →

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