#21731C#21731C

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

Color values

HEX#21731C
RGBrgb(33, 115, 28)
HSLhsl(117, 61%, 28%)
HSVhsv(117, 76%, 45%)
CMYKcmyk(71.3%, 0%, 75.7%, 54.9%)
CIE-LABlab(42.26, -41.86, 38.88)
CIE-LCHlch(42.26, 57.13, 137.12°)
OKLaboklab(48.84% -0.1139 0.0882)
OKLCHoklch(48.84% 0.144 142.3)
XYZxyz(6.9671, 12.6679, 3.1764)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21731C #6E1C73
analogous
#4C731C #21731C #1C7342
triadic
#21731C #1C2173 #731C21
tetradic
#21731C #1C4C73 #6E1C73 #73421C
square
#21731C #1C4C73 #6E1C73 #73421C
split-complementary
#21731C #421C73 #731C4C
monochromatic
#071906 #134210 #21731C #2FA428 #43CF3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21731C#FFFFFF#000000##FFFFFF
##21731C1.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)
#76680D
Deuteranopia (green-blind)
#6C6125
Tritanopia (blue-blind)
#0D6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #21731c;
/* rgb */ color: rgb(33, 115, 28);
/* oklch */ color: oklch(48.8% 0.144 142.3);
Tailwind
colors: {
  custom: {
    50: '#699c5e',
    500: '#21731c',
    950: '#000000',
  },
}
SCSS
$custom: #21731c;
$custom-light: #699c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#21731c",
  "rgb": {
    "r": 33,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 116.552,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.48844,
    "c": 0.14407,
    "h": 142.3
  },
  "luminance": 0.12669
}

Semantic roles & 50–950 ramp

primary
#21731C
secondary
#A243A7
accent
#44E4DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21731C

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

Preview Lab → · Contrast checker → · Palette generator →

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