#21751E#21751E

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

Color values

HEX#21751E
RGBrgb(33, 117, 30)
HSLhsl(118, 59%, 29%)
HSVhsv(118, 74%, 46%)
CMYKcmyk(71.8%, 0%, 74.4%, 54.1%)
CIE-LABlab(42.97, -42.41, 38.80)
CIE-LCHlch(42.97, 57.48, 137.55°)
OKLaboklab(49.44% -0.1153 0.0883)
OKLCHoklch(49.44% 0.145 142.6)
XYZxyz(7.2224, 13.1389, 3.3835)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21751E #721E75
analogous
#4D751E #21751E #1E7547
triadic
#21751E #1E2175 #751E21
tetradic
#21751E #1E4D75 #721E75 #75471E
square
#21751E #1E4D75 #721E75 #75471E
split-complementary
#21751E #471E75 #751E4D
monochromatic
#071806 #134412 #21751E #2FA62A #44CE40

Accessibility & contrast

On white

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

On black

3.63
#21751E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21751E#FFFFFF#000000##FFFFFF
##21751E1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A10
Deuteranopia (green-blind)
#6E6327
Tritanopia (blue-blind)
#0A7164
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #21751e;
/* rgb */ color: rgb(33, 117, 30);
/* oklch */ color: oklch(49.4% 0.145 142.6);
Tailwind
colors: {
  custom: {
    50: '#6a9e5f',
    500: '#21751e',
    950: '#000000',
  },
}
SCSS
$custom: #21751e;
$custom-light: #6a9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#21751e",
  "rgb": {
    "r": 33,
    "g": 117,
    "b": 30
  },
  "hsl": {
    "h": 117.931,
    "s": 59.184,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4944,
    "c": 0.14523,
    "h": 142.6
  },
  "luminance": 0.1314
}

Semantic roles & 50–950 ramp

primary
#21751E
secondary
#A546A9
accent
#45E2DD
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21751E

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

Preview Lab → · Contrast checker → · Palette generator →

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