#21731D#21731D

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

Color values

HEX#21731D
RGBrgb(33, 115, 29)
HSLhsl(117, 60%, 28%)
HSVhsv(117, 75%, 45%)
CMYKcmyk(71.3%, 0%, 74.8%, 54.9%)
CIE-LABlab(42.27, -41.77, 38.48)
CIE-LCHlch(42.27, 56.79, 137.35°)
OKLaboklab(48.85% -0.1136 0.0875)
OKLCHoklch(48.85% 0.143 142.4)
XYZxyz(6.9793, 12.6728, 3.2404)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21731D #6F1D73
analogous
#4C731D #21731D #1D7344
triadic
#21731D #1D2173 #731D21
tetradic
#21731D #1D4C73 #6F1D73 #73441D
square
#21731D #1D4C73 #6F1D73 #73441D
split-complementary
#21731D #441D73 #731D4C
monochromatic
#071806 #134211 #21731D #2FA429 #43CE3C

Accessibility & contrast

On white

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

On black

3.53
#21731D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21731D#FFFFFF#000000##FFFFFF
##21731D1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21731d;
/* rgb */ color: rgb(33, 115, 29);
/* oklch */ color: oklch(48.9% 0.143 142.4);
Tailwind
colors: {
  custom: {
    50: '#699c5f',
    500: '#21731d',
    950: '#000000',
  },
}
SCSS
$custom: #21731d;
$custom-light: #699c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#21731d",
  "rgb": {
    "r": 33,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 117.209,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48853,
    "c": 0.14341,
    "h": 142.4
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

primary
#21731D
secondary
#A345A7
accent
#45E3DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21731D

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

Preview Lab → · Contrast checker → · Palette generator →

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