#21791F#21791F

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

Color values

HEX#21791F
RGBrgb(33, 121, 31)
HSLhsl(119, 59%, 30%)
HSVhsv(119, 74%, 47%)
CMYKcmyk(72.7%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.37, -43.76, 39.83)
CIE-LCHlch(44.37, 59.18, 137.69°)
OKLaboklab(50.6% -0.1189 0.0906)
OKLCHoklch(50.6% 0.15 142.7)
XYZxyz(7.7114, 14.0962, 3.6105)
Luminance0.1410 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21791F #771F79
analogous
#4E791F #21791F #1F794A
triadic
#21791F #1F2179 #791F21
tetradic
#21791F #1F4E79 #771F79 #794A1F
square
#21791F #1F4E79 #771F79 #794A1F
split-complementary
#21791F #4A1F79 #791F4E
monochromatic
#071806 #144813 #21791F #2EAA2B #47CF43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21791F#FFFFFF#000000##FFFFFF
##21791F1.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)
#7C6D10
Deuteranopia (green-blind)
#726628
Tritanopia (blue-blind)
#067567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21791f;
/* rgb */ color: rgb(33, 121, 31);
/* oklch */ color: oklch(50.6% 0.149 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ba161',
    500: '#21791f',
    950: '#000000',
  },
}
SCSS
$custom: #21791f;
$custom-light: #6ba161;
$custom-dark: #000000;
JSON
{
  "hex": "#21791f",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 118.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50603,
    "c": 0.1495,
    "h": 142.7
  },
  "luminance": 0.14097
}

Semantic roles & 50–950 ramp

primary
#21791F
secondary
#AA47AC
accent
#45E2DF
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #21791F

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

Preview Lab → · Contrast checker → · Palette generator →

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