#21731A#21731A

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

Color values

HEX#21731A
RGBrgb(33, 115, 26)
HSLhsl(115, 63%, 28%)
HSVhsv(115, 77%, 45%)
CMYKcmyk(71.3%, 0%, 77.4%, 54.9%)
CIE-LABlab(42.24, -42.03, 39.65)
CIE-LCHlch(42.24, 57.78, 136.67°)
OKLaboklab(48.83% -0.1145 0.0895)
OKLCHoklch(48.83% 0.145 142)
XYZxyz(6.9440, 12.6586, 3.0545)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21731A #6C1A73
analogous
#4D731A #21731A #1A733F
triadic
#21731A #1A2173 #731A21
tetradic
#21731A #1A4D73 #6C1A73 #733F1A
square
#21731A #1A4D73 #6C1A73 #733F1A
split-complementary
#21731A #3F1A73 #731A4D
monochromatic
#071906 #13410F #21731A #2FA525 #42D236

Accessibility & contrast

On white

5.95
#21731A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21731A
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21731A#FFFFFF#000000##FFFFFF
##21731A1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766808
Deuteranopia (green-blind)
#6C6123
Tritanopia (blue-blind)
#0D6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #21731a;
/* rgb */ color: rgb(33, 115, 26);
/* oklch */ color: oklch(48.8% 0.145 142.0);
Tailwind
colors: {
  custom: {
    50: '#6a9c5d',
    500: '#21731a',
    950: '#000000',
  },
}
SCSS
$custom: #21731a;
$custom-light: #6a9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#21731a",
  "rgb": {
    "r": 33,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 115.281,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.48828,
    "c": 0.14534,
    "h": 142
  },
  "luminance": 0.12659
}

Semantic roles & 50–950 ramp

primary
#21731A
secondary
#A041A8
accent
#42E6D9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #21731A

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

Preview Lab → · Contrast checker → · Palette generator →

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