#21791C#21791C

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

Color values

HEX#21791C
RGBrgb(33, 121, 28)
HSLhsl(117, 62%, 29%)
HSVhsv(117, 77%, 47%)
CMYKcmyk(72.7%, 0%, 76.9%, 52.5%)
CIE-LABlab(44.35, -44.02, 41.00)
CIE-LCHlch(44.35, 60.16, 137.04°)
OKLaboklab(50.58% -0.1198 0.0926)
OKLCHoklch(50.58% 0.151 142.3)
XYZxyz(7.6737, 14.0811, 3.4119)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21791C #741C79
analogous
#50791C #21791C #1C7946
triadic
#21791C #1C2179 #791C21
tetradic
#21791C #1C5079 #741C79 #79461C
square
#21791C #1C5079 #741C79 #79461C
split-complementary
#21791C #461C79 #791C50
monochromatic
#071906 #134710 #21791C #2FAB28 #45D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21791C#FFFFFF#000000##FFFFFF
##21791C1.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)
#7C6D0A
Deuteranopia (green-blind)
#726626
Tritanopia (blue-blind)
#087567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #21791c;
/* rgb */ color: rgb(33, 121, 28);
/* oklch */ color: oklch(50.6% 0.151 142.3);
Tailwind
colors: {
  custom: {
    50: '#6ba15f',
    500: '#21791c',
    950: '#000000',
  },
}
SCSS
$custom: #21791c;
$custom-light: #6ba15f;
$custom-dark: #000000;
JSON
{
  "hex": "#21791c",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 116.774,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50578,
    "c": 0.15141,
    "h": 142.3
  },
  "luminance": 0.14082
}

Semantic roles & 50–950 ramp

primary
#21791C
secondary
#A744AD
accent
#42E5DD
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #21791C

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

Preview Lab → · Contrast checker → · Palette generator →

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