#21731B#21731B

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

Color values

HEX#21731B
RGBrgb(33, 115, 27)
HSLhsl(116, 62%, 28%)
HSVhsv(116, 77%, 45%)
CMYKcmyk(71.3%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.25, -41.95, 39.27)
CIE-LCHlch(42.25, 57.46, 136.89°)
OKLaboklab(48.84% -0.1142 0.0889)
OKLCHoklch(48.84% 0.145 142.1)
XYZxyz(6.9554, 12.6632, 3.1144)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21731B #6D1B73
analogous
#4D731B #21731B #1B7341
triadic
#21731B #1B2173 #731B21
tetradic
#21731B #1B4D73 #6D1B73 #73411B
square
#21731B #1B4D73 #6D1B73 #73411B
split-complementary
#21731B #411B73 #731B4D
monochromatic
#071906 #13410F #21731B #2FA527 #42D038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #21731b;
/* rgb */ color: rgb(33, 115, 27);
/* oklch */ color: oklch(48.8% 0.145 142.1);
Tailwind
colors: {
  custom: {
    50: '#6a9c5e',
    500: '#21731b',
    950: '#000000',
  },
}
SCSS
$custom: #21731b;
$custom-light: #6a9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#21731b",
  "rgb": {
    "r": 33,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 115.909,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48836,
    "c": 0.14471,
    "h": 142.1
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#21731B
secondary
#A142A8
accent
#43E5DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21731B

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

Preview Lab → · Contrast checker → · Palette generator →

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