#21791E#21791E

#21791E is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.6% C 0.150 H 142.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#21791E
RGBrgb(33, 121, 30)
HSLhsl(118, 60%, 30%)
HSVhsv(118, 75%, 47%)
CMYKcmyk(72.7%, 0%, 75.2%, 52.5%)
CIE-LABlab(44.36, -43.85, 40.23)
CIE-LCHlch(44.36, 59.51, 137.47°)
OKLaboklab(50.59% -0.1192 0.0913)
OKLCHoklch(50.59% 0.15 142.6)
XYZxyz(7.6985, 14.0910, 3.5422)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21791E #761E79
analogous
#4F791E #21791E #1E7949
triadic
#21791E #1E2179 #791E21
tetradic
#21791E #1E4F79 #761E79 #79491E
square
#21791E #1E4F79 #761E79 #79491E
split-complementary
#21791E #491E79 #791E4F
monochromatic
#071906 #144812 #21791E #2EAA2A #46D041

Accessibility & contrast

On white

5.50
#21791E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#21791E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21791E
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21791E#FFFFFF#000000##FFFFFF
##21791E1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D0E
Deuteranopia (green-blind)
#726627
Tritanopia (blue-blind)
#077567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21791e;
/* rgb */ color: rgb(33, 121, 30);
/* oklch */ color: oklch(50.6% 0.150 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ba160',
    500: '#21791e',
    950: '#000000',
  },
}
SCSS
$custom: #21791e;
$custom-light: #6ba160;
$custom-dark: #000000;
JSON
{
  "hex": "#21791e",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 30
  },
  "hsl": {
    "h": 118.022,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50594,
    "c": 0.15015,
    "h": 142.6
  },
  "luminance": 0.14092
}

Semantic roles & 50–950 ramp

primary
#21791E
secondary
#A946AD
accent
#44E3DE
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #21791E

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

Preview Lab → · Contrast checker → · Palette generator →

#21791E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva