#21731E#21731E

#21731E is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.143 H 142.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#21731E
RGBrgb(33, 115, 30)
HSLhsl(118, 59%, 28%)
HSVhsv(118, 74%, 45%)
CMYKcmyk(71.3%, 0%, 73.9%, 54.9%)
CIE-LABlab(42.27, -41.68, 38.07)
CIE-LCHlch(42.27, 56.45, 137.59°)
OKLaboklab(48.86% -0.1133 0.0868)
OKLCHoklch(48.86% 0.143 142.6)
XYZxyz(6.9919, 12.6778, 3.3066)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21731E #701E73
analogous
#4B731E #21731E #1E7345
triadic
#21731E #1E2173 #731E21
tetradic
#21731E #1E4B73 #701E73 #73451E
square
#21731E #1E4B73 #701E73 #73451E
split-complementary
#21731E #451E73 #731E4B
monochromatic
#071806 #134211 #21731E #2FA42B #44CD3F

Accessibility & contrast

On white

5.94
#21731E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#21731E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21731E
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21731E#FFFFFF#000000##FFFFFF
##21731E1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766810
Deuteranopia (green-blind)
#6C6126
Tritanopia (blue-blind)
#0C6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #21731e;
/* rgb */ color: rgb(33, 115, 30);
/* oklch */ color: oklch(48.9% 0.143 142.6);
Tailwind
colors: {
  custom: {
    50: '#699c5f',
    500: '#21731e',
    950: '#000000',
  },
}
SCSS
$custom: #21731e;
$custom-light: #699c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#21731e",
  "rgb": {
    "r": 33,
    "g": 115,
    "b": 30
  },
  "hsl": {
    "h": 117.882,
    "s": 58.621,
    "l": 28.431
  },
  "oklch": {
    "l": 0.48862,
    "c": 0.14274,
    "h": 142.6
  },
  "luminance": 0.12679
}

Semantic roles & 50–950 ramp

primary
#21731E
secondary
#A446A7
accent
#46E2DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21731E

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

Preview Lab → · Contrast checker → · Palette generator →

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