#21792C#21792C

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

Color values

HEX#21792C
RGBrgb(33, 121, 44)
HSLhsl(128, 57%, 30%)
HSVhsv(128, 73%, 47%)
CMYKcmyk(72.7%, 0%, 63.6%, 52.5%)
CIE-LABlab(44.49, -42.35, 34.12)
CIE-LCHlch(44.49, 54.39, 141.14°)
OKLaboklab(50.74% -0.1144 0.0801)
OKLCHoklch(50.74% 0.14 145)
XYZxyz(7.9187, 14.1791, 4.7019)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21792C #79216E
analogous
#427921 #21792C #217958
triadic
#21792C #2C2179 #792C21
tetradic
#21792C #214279 #79216E #795821
square
#21792C #214279 #79216E #795821
split-complementary
#21792C #582179 #792142
monochromatic
#071909 #14491B #21792C #2EA93D #47CD58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21792C#FFFFFF#000000##FFFFFF
##21792C1.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)
#7B6E24
Deuteranopia (green-blind)
#716632
Tritanopia (blue-blind)
#007669
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21792c;
/* rgb */ color: rgb(33, 121, 44);
/* oklch */ color: oklch(50.7% 0.140 145.0);
Tailwind
colors: {
  custom: {
    50: '#6aa168',
    500: '#21792c',
    950: '#000000',
  },
}
SCSS
$custom: #21792c;
$custom-light: #6aa168;
$custom-dark: #000000;
JSON
{
  "hex": "#21792c",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 44
  },
  "hsl": {
    "h": 127.5,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50739,
    "c": 0.13967,
    "h": 145
  },
  "luminance": 0.1418
}

Semantic roles & 50–950 ramp

primary
#21792C
secondary
#AC4AA0
accent
#47CDE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #21792C

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

Preview Lab → · Contrast checker → · Palette generator →

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