#21792A#21792A

#21792A is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.7% C 0.141 H 144.6°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#21792A
RGBrgb(33, 121, 42)
HSLhsl(126, 57%, 30%)
HSVhsv(126, 73%, 47%)
CMYKcmyk(72.7%, 0%, 65.3%, 52.5%)
CIE-LABlab(44.47, -42.60, 35.06)
CIE-LCHlch(44.47, 55.17, 140.54°)
OKLaboklab(50.72% -0.1152 0.0819)
OKLCHoklch(50.72% 0.141 144.6)
XYZxyz(7.8820, 14.1644, 4.5086)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21792A #792170
analogous
#447921 #21792A #217956
triadic
#21792A #2A2179 #792A21
tetradic
#21792A #214479 #792170 #795621
square
#21792A #214479 #792170 #795621
split-complementary
#21792A #562179 #792144
monochromatic
#071909 #144919 #21792A #2EA93B #47CD55

Accessibility & contrast

On white

5.48
#21792A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#21792A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21792A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21792A#FFFFFF#000000##FFFFFF
##21792A1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D21
Deuteranopia (green-blind)
#716631
Tritanopia (blue-blind)
#017668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21792a;
/* rgb */ color: rgb(33, 121, 42);
/* oklch */ color: oklch(50.7% 0.141 144.6);
Tailwind
colors: {
  custom: {
    50: '#6aa167',
    500: '#21792a',
    950: '#000000',
  },
}
SCSS
$custom: #21792a;
$custom-light: #6aa167;
$custom-dark: #000000;
JSON
{
  "hex": "#21792a",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 42
  },
  "hsl": {
    "h": 126.136,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50715,
    "c": 0.14134,
    "h": 144.6
  },
  "luminance": 0.14165
}

Semantic roles & 50–950 ramp

primary
#21792A
secondary
#AC4AA2
accent
#47D1E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #21792A

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

Preview Lab → · Contrast checker → · Palette generator →

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