#21751A#21751A

#21751A is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.4% C 0.148 H 142.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#21751A
RGBrgb(33, 117, 26)
HSLhsl(115, 64%, 28%)
HSVhsv(115, 78%, 46%)
CMYKcmyk(71.8%, 0%, 77.8%, 54.1%)
CIE-LABlab(42.94, -42.75, 40.35)
CIE-LCHlch(42.94, 58.79, 136.66°)
OKLaboklab(49.41% -0.1165 0.091)
OKLCHoklch(49.41% 0.148 142)
XYZxyz(7.1745, 13.1197, 3.1313)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21751A #6E1A75
analogous
#4E751A #21751A #1A7541
triadic
#21751A #1A2175 #751A21
tetradic
#21751A #1A4E75 #6E1A75 #75411A
square
#21751A #1A4E75 #6E1A75 #75411A
split-complementary
#21751A #411A75 #751A4E
monochromatic
#071906 #13430F #21751A #2FA725 #43D337

Accessibility & contrast

On white

5.79
#21751A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#21751A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21751A
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21751A#FFFFFF#000000##FFFFFF
##21751A1.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786907
Deuteranopia (green-blind)
#6E6324
Tritanopia (blue-blind)
#0C7164
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #21751a;
/* rgb */ color: rgb(33, 117, 26);
/* oklch */ color: oklch(49.4% 0.148 142.0);
Tailwind
colors: {
  custom: {
    50: '#6a9e5d',
    500: '#21751a',
    950: '#000000',
  },
}
SCSS
$custom: #21751a;
$custom-light: #6a9e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#21751a",
  "rgb": {
    "r": 33,
    "g": 117,
    "b": 26
  },
  "hsl": {
    "h": 115.385,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49408,
    "c": 0.14778,
    "h": 142
  },
  "luminance": 0.1312
}

Semantic roles & 50–950 ramp

primary
#21751A
secondary
#A241AA
accent
#41E7DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21751A

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

Preview Lab → · Contrast checker → · Palette generator →

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