#5B7017#5B7017

#5B7017 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.1% C 0.114 H 122.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5B7017
RGBrgb(91, 112, 23)
HSLhsl(74, 66%, 26%)
HSVhsv(74, 79%, 44%)
CMYKcmyk(18.7%, 0%, 79.5%, 56.1%)
CIE-LABlab(44.05, -20.75, 43.48)
CIE-LCHlch(44.05, 48.18, 115.51°)
OKLaboklab(51.06% -0.061 0.096)
OKLCHoklch(51.06% 0.114 122.4)
XYZxyz(10.2634, 13.8743, 2.9478)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7017 #2C1770
analogous
#705917 #5B7017 #2F7017
triadic
#5B7017 #175B70 #70175B
tetradic
#5B7017 #177059 #2C1770 #70172F
square
#5B7017 #177059 #2C1770 #70172F
split-complementary
#5B7017 #172F70 #591770
monochromatic
#151905 #323D0D #5B7017 #84A321 #ADD42D

Accessibility & contrast

On white

5.56
#5B7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5B7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7017
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7017#FFFFFF#000000##FFFFFF
##5B70171.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776903
Deuteranopia (green-blind)
#74681F
Tritanopia (blue-blind)
#606A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b7017;
/* rgb */ color: rgb(91, 112, 23);
/* oklch */ color: oklch(51.1% 0.114 122.4);
Tailwind
colors: {
  custom: {
    50: '#8c995c',
    500: '#5b7017',
    950: '#000000',
  },
}
SCSS
$custom: #5b7017;
$custom-light: #8c995c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7017",
  "rgb": {
    "r": 91,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 74.157,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51063,
    "c": 0.11372,
    "h": 122.4
  },
  "luminance": 0.13874
}

Semantic roles & 50–950 ramp

primary
#5B7017
secondary
#563DA6
accent
#3FE967
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B7017

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

Preview Lab → · Contrast checker → · Palette generator →

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