#5B7717#5B7717

#5B7717 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.9% C 0.123 H 125.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5B7717
RGBrgb(91, 119, 23)
HSLhsl(78, 68%, 28%)
HSVhsv(78, 81%, 47%)
CMYKcmyk(23.5%, 0%, 80.7%, 53.3%)
CIE-LABlab(46.28, -24.32, 45.57)
CIE-LCHlch(46.28, 51.65, 118.09°)
OKLaboklab(52.87% -0.0707 0.1004)
OKLCHoklch(52.87% 0.123 125.2)
XYZxyz(11.0660, 15.4795, 3.2153)
Luminance0.1548 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7717 #331777
analogous
#776317 #5B7717 #2B7717
triadic
#5B7717 #175B77 #77175B
tetradic
#5B7717 #177763 #331777 #77172B
square
#5B7717 #177763 #331777 #77172B
split-complementary
#5B7717 #172B77 #631777
monochromatic
#141A05 #34440D #5B7717 #82AA21 #A7D731

Accessibility & contrast

On white

5.13
#5B7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5B7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7717
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7717#FFFFFF#000000##FFFFFF
##5B77171.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#5F7165
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7717;
/* rgb */ color: rgb(91, 119, 23);
/* oklch */ color: oklch(52.9% 0.123 125.2);
Tailwind
colors: {
  custom: {
    50: '#8d9e5d',
    500: '#5b7717',
    950: '#000000',
  },
}
SCSS
$custom: #5b7717;
$custom-light: #8d9e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7717",
  "rgb": {
    "r": 91,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 77.5,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52869,
    "c": 0.1228,
    "h": 125.2
  },
  "luminance": 0.1548
}

Semantic roles & 50–950 ramp

primary
#5B7717
secondary
#5E3EAC
accent
#3DEA70
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7717

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

Preview Lab → · Contrast checker → · Palette generator →

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