#5B7D17#5B7D17

#5B7D17 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.131 H 127.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5B7D17
RGBrgb(91, 125, 23)
HSLhsl(80, 69%, 29%)
HSVhsv(80, 82%, 49%)
CMYKcmyk(27.2%, 0%, 81.6%, 51%)
CIE-LABlab(48.20, -27.28, 47.34)
CIE-LCHlch(48.20, 54.63, 119.95°)
OKLaboklab(54.42% -0.0788 0.1041)
OKLCHoklch(54.42% 0.131 127.1)
XYZxyz(11.8027, 16.9530, 3.4609)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D17 #39177D
analogous
#7D6C17 #5B7D17 #287D17
triadic
#5B7D17 #175B7D #7D175B
tetradic
#5B7D17 #177D6C #39177D #7D1728
square
#5B7D17 #177D6C #39177D #7D1728
split-complementary
#5B7D17 #17287D #6C177D
monochromatic
#131A05 #35490D #5B7D17 #81B121 #A3DA35

Accessibility & contrast

On white

4.78
#5B7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5B7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7D17
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D17#FFFFFF#000000##FFFFFF
##5B7D171.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7222
Tritanopia (blue-blind)
#5F776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7d17;
/* rgb */ color: rgb(91, 125, 23);
/* oklch */ color: oklch(54.4% 0.131 127.1);
Tailwind
colors: {
  custom: {
    50: '#8da25e',
    500: '#5b7d17',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d17;
$custom-light: #8da25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d17",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 80,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54424,
    "c": 0.13056,
    "h": 127.1
  },
  "luminance": 0.16953
}

Semantic roles & 50–950 ramp

primary
#5B7D17
secondary
#653EB2
accent
#3CEC77
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B7D17

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

Preview Lab → · Contrast checker → · Palette generator →

#5B7D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva