#21751D#21751D

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

Color values

HEX#21751D
RGBrgb(33, 117, 29)
HSLhsl(117, 60%, 29%)
HSVhsv(117, 75%, 46%)
CMYKcmyk(71.8%, 0%, 75.2%, 54.1%)
CIE-LABlab(42.96, -42.50, 39.20)
CIE-LCHlch(42.96, 57.82, 137.31°)
OKLaboklab(49.43% -0.1156 0.089)
OKLCHoklch(49.43% 0.146 142.4)
XYZxyz(7.2098, 13.1339, 3.3173)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21751D #711D75
analogous
#4D751D #21751D #1D7545
triadic
#21751D #1D2175 #751D21
tetradic
#21751D #1D4D75 #711D75 #75451D
square
#21751D #1D4D75 #711D75 #75451D
split-complementary
#21751D #451D75 #751D4D
monochromatic
#071906 #134411 #21751D #2FA629 #44CF3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21751D#FFFFFF#000000##FFFFFF
##21751D1.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)
#786A0E
Deuteranopia (green-blind)
#6E6326
Tritanopia (blue-blind)
#0B7164
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #21751d;
/* rgb */ color: rgb(33, 117, 29);
/* oklch */ color: oklch(49.4% 0.146 142.4);
Tailwind
colors: {
  custom: {
    50: '#6a9e5f',
    500: '#21751d',
    950: '#000000',
  },
}
SCSS
$custom: #21751d;
$custom-light: #6a9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#21751d",
  "rgb": {
    "r": 33,
    "g": 117,
    "b": 29
  },
  "hsl": {
    "h": 117.273,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49432,
    "c": 0.14589,
    "h": 142.4
  },
  "luminance": 0.13135
}

Semantic roles & 50–950 ramp

primary
#21751D
secondary
#A545A9
accent
#44E3DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21751D

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

Preview Lab → · Contrast checker → · Palette generator →

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