#21791A#21791A

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

Color values

HEX#21791A
RGBrgb(33, 121, 26)
HSLhsl(116, 65%, 29%)
HSVhsv(116, 79%, 47%)
CMYKcmyk(72.7%, 0%, 78.5%, 52.5%)
CIE-LABlab(44.34, -44.18, 41.73)
CIE-LCHlch(44.34, 60.78, 136.63°)
OKLaboklab(50.56% -0.1203 0.0939)
OKLCHoklch(50.56% 0.153 142)
XYZxyz(7.6506, 14.0718, 3.2900)
Luminance0.1407 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21791A #721A79
analogous
#51791A #21791A #1A7943
triadic
#21791A #1A2179 #791A21
tetradic
#21791A #1A5179 #721A79 #79431A
square
#21791A #1A5179 #721A79 #79431A
split-complementary
#21791A #431A79 #791A51
monochromatic
#071905 #13470F #21791A #2FAB25 #44D439

Accessibility & contrast

On white

5.51
#21791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#21791A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21791A
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21791A#FFFFFF#000000##FFFFFF
##21791A1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D05
Deuteranopia (green-blind)
#726624
Tritanopia (blue-blind)
#087567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21791a;
/* rgb */ color: rgb(33, 121, 26);
/* oklch */ color: oklch(50.6% 0.153 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba15e',
    500: '#21791a',
    950: '#000000',
  },
}
SCSS
$custom: #21791a;
$custom-light: #6ba15e;
$custom-dark: #000000;
JSON
{
  "hex": "#21791a",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 115.579,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50563,
    "c": 0.1526,
    "h": 142
  },
  "luminance": 0.14073
}

Semantic roles & 50–950 ramp

primary
#21791A
secondary
#A541AD
accent
#40E8DB
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #21791A

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

Preview Lab → · Contrast checker → · Palette generator →

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