#21792B#21792B

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

Color values

HEX#21792B
RGBrgb(33, 121, 43)
HSLhsl(127, 57%, 30%)
HSVhsv(127, 73%, 47%)
CMYKcmyk(72.7%, 0%, 64.5%, 52.5%)
CIE-LABlab(44.48, -42.47, 34.60)
CIE-LCHlch(44.48, 54.78, 140.84°)
OKLaboklab(50.73% -0.1148 0.081)
OKLCHoklch(50.73% 0.141 144.8)
XYZxyz(7.9001, 14.1716, 4.6041)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21792B #79216F
analogous
#437921 #21792B #217957
triadic
#21792B #2B2179 #792B21
tetradic
#21792B #214379 #79216F #795721
square
#21792B #214379 #79216F #795721
split-complementary
#21792B #572179 #792143
monochromatic
#071909 #14491A #21792B #2EA93C #47CD57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21792B#FFFFFF#000000##FFFFFF
##21792B1.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)
#7B6E22
Deuteranopia (green-blind)
#716632
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21792b;
/* rgb */ color: rgb(33, 121, 43);
/* oklch */ color: oklch(50.7% 0.141 144.8);
Tailwind
colors: {
  custom: {
    50: '#6aa167',
    500: '#21792b',
    950: '#000000',
  },
}
SCSS
$custom: #21792b;
$custom-light: #6aa167;
$custom-dark: #000000;
JSON
{
  "hex": "#21792b",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 43
  },
  "hsl": {
    "h": 126.818,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50727,
    "c": 0.14051,
    "h": 144.8
  },
  "luminance": 0.14172
}

Semantic roles & 50–950 ramp

primary
#21792B
secondary
#AC4AA1
accent
#47CFE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #21792B

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

Preview Lab → · Contrast checker → · Palette generator →

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