#21731F#21731F

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

Color values

HEX#21731F
RGBrgb(33, 115, 31)
HSLhsl(119, 58%, 29%)
HSVhsv(119, 73%, 45%)
CMYKcmyk(71.3%, 0%, 73%, 54.9%)
CIE-LABlab(42.28, -41.58, 37.66)
CIE-LCHlch(42.28, 56.10, 137.83°)
OKLaboklab(48.87% -0.113 0.0861)
OKLCHoklch(48.87% 0.142 142.7)
XYZxyz(7.0048, 12.6830, 3.3750)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21731F #711F73
analogous
#4B731F #21731F #1F7347
triadic
#21731F #1F2173 #731F21
tetradic
#21731F #1F4B73 #711F73 #73471F
square
#21731F #1F4B73 #711F73 #73471F
split-complementary
#21731F #471F73 #731F4B
monochromatic
#071806 #134312 #21731F #2FA32C #44CC41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21731F#FFFFFF#000000##FFFFFF
##21731F1.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)
#766812
Deuteranopia (green-blind)
#6C6127
Tritanopia (blue-blind)
#0B6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #21731f;
/* rgb */ color: rgb(33, 115, 31);
/* oklch */ color: oklch(48.9% 0.142 142.7);
Tailwind
colors: {
  custom: {
    50: '#699c60',
    500: '#21731f',
    950: '#000000',
  },
}
SCSS
$custom: #21731f;
$custom-light: #699c60;
$custom-dark: #000000;
JSON
{
  "hex": "#21731f",
  "rgb": {
    "r": 33,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 118.571,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.48871,
    "c": 0.14204,
    "h": 142.7
  },
  "luminance": 0.12684
}

Semantic roles & 50–950 ramp

primary
#21731F
secondary
#A547A7
accent
#47E1DD
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21731F

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

Preview Lab → · Contrast checker → · Palette generator →

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