#21791B#21791B

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

Color values

HEX#21791B
RGBrgb(33, 121, 27)
HSLhsl(116, 64%, 29%)
HSVhsv(116, 78%, 47%)
CMYKcmyk(72.7%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.34, -44.10, 41.37)
CIE-LCHlch(44.34, 60.47, 136.83°)
OKLaboklab(50.57% -0.1201 0.0932)
OKLCHoklch(50.57% 0.152 142.2)
XYZxyz(7.6620, 14.0764, 3.3499)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21791B #731B79
analogous
#50791B #21791B #1B7944
triadic
#21791B #1B2179 #791B21
tetradic
#21791B #1B5079 #731B79 #79441B
square
#21791B #1B5079 #731B79 #79441B
split-complementary
#21791B #441B79 #791B50
monochromatic
#071906 #134710 #21791B #2FAB26 #45D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21791B#FFFFFF#000000##FFFFFF
##21791B1.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)
#7C6D07
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#087567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21791b;
/* rgb */ color: rgb(33, 121, 27);
/* oklch */ color: oklch(50.6% 0.152 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ba15e',
    500: '#21791b',
    950: '#000000',
  },
}
SCSS
$custom: #21791b;
$custom-light: #6ba15e;
$custom-dark: #000000;
JSON
{
  "hex": "#21791b",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 116.17,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5057,
    "c": 0.15201,
    "h": 142.2
  },
  "luminance": 0.14077
}

Semantic roles & 50–950 ramp

primary
#21791B
secondary
#A643AD
accent
#41E7DC
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #21791B

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

Preview Lab → · Contrast checker → · Palette generator →

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