#5B6717#5B6717

#5B6717 is a mid, moderate yellow. Relative luminance 0.120; OKLCH L 48.8% C 0.102 H 117.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5B6717
RGBrgb(91, 103, 23)
HSLhsl(69, 63%, 25%)
HSVhsv(69, 78%, 40%)
CMYKcmyk(11.7%, 0%, 77.7%, 59.6%)
CIE-LABlab(41.19, -15.97, 40.78)
CIE-LCHlch(41.19, 43.79, 111.38°)
OKLaboklab(48.76% -0.0478 0.0903)
OKLCHoklch(48.76% 0.102 117.9)
XYZxyz(9.3195, 11.9866, 2.6331)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6717 #231767
analogous
#674B17 #5B6717 #336717
triadic
#5B6717 #175B67 #67175B
tetradic
#5B6717 #17674B #231767 #671733
square
#5B6717 #17674B #231767 #671733
split-complementary
#5B6717 #173367 #4B1767
monochromatic
#161906 #2F350C #5B6717 #879922 #B3CB2D

Accessibility & contrast

On white

6.18
#5B6717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5B6717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6717
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6717#FFFFFF#000000##FFFFFF
##5B67171.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6107
Deuteranopia (green-blind)
#6D621E
Tritanopia (blue-blind)
#616158
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b6717;
/* rgb */ color: rgb(91, 103, 23);
/* oklch */ color: oklch(48.8% 0.102 117.9);
Tailwind
colors: {
  custom: {
    50: '#8c925b',
    500: '#5b6717',
    950: '#000000',
  },
}
SCSS
$custom: #5b6717;
$custom-light: #8c925b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6717",
  "rgb": {
    "r": 91,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 69,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.4876,
    "c": 0.10217,
    "h": 117.9
  },
  "luminance": 0.11987
}

Semantic roles & 50–950 ramp

primary
#5B6717
secondary
#4B3D9D
accent
#41E75A
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D04
muted
#7D7D79

Preview Lab

Preview with #5B6717

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

Preview Lab → · Contrast checker → · Palette generator →

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