#21751B#21751B

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

Color values

HEX#21751B
RGBrgb(33, 117, 27)
HSLhsl(116, 63%, 28%)
HSVhsv(116, 77%, 46%)
CMYKcmyk(71.8%, 0%, 76.9%, 54.1%)
CIE-LABlab(42.95, -42.67, 39.97)
CIE-LCHlch(42.95, 58.47, 136.87°)
OKLaboklab(49.42% -0.1162 0.0903)
OKLCHoklch(49.42% 0.147 142.1)
XYZxyz(7.1859, 13.1243, 3.1912)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21751B #6F1B75
analogous
#4E751B #21751B #1B7542
triadic
#21751B #1B2175 #751B21
tetradic
#21751B #1B4E75 #6F1B75 #75421B
square
#21751B #1B4E75 #6F1B75 #75421B
split-complementary
#21751B #421B75 #751B4E
monochromatic
#071906 #134310 #21751B #2FA726 #43D139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21751B#FFFFFF#000000##FFFFFF
##21751B1.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)
#786A0A
Deuteranopia (green-blind)
#6E6325
Tritanopia (blue-blind)
#0B7164
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #21751b;
/* rgb */ color: rgb(33, 117, 27);
/* oklch */ color: oklch(49.4% 0.147 142.1);
Tailwind
colors: {
  custom: {
    50: '#6a9e5e',
    500: '#21751b',
    950: '#000000',
  },
}
SCSS
$custom: #21751b;
$custom-light: #6a9e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#21751b",
  "rgb": {
    "r": 33,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 116,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49415,
    "c": 0.14716,
    "h": 142.1
  },
  "luminance": 0.13125
}

Semantic roles & 50–950 ramp

primary
#21751B
secondary
#A342A9
accent
#42E6DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21751B

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

Preview Lab → · Contrast checker → · Palette generator →

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