#5B6712#5B6712

#5B6712 is a mid, moderate yellow. Relative luminance 0.120; OKLCH L 48.7% C 0.105 H 117.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5B6712
RGBrgb(91, 103, 18)
HSLhsl(68, 70%, 24%)
HSVhsv(68, 83%, 40%)
CMYKcmyk(11.7%, 0%, 82.5%, 59.6%)
CIE-LABlab(41.17, -16.22, 42.53)
CIE-LCHlch(41.17, 45.52, 110.87°)
OKLaboklab(48.73% -0.0489 0.0931)
OKLCHoklch(48.73% 0.105 117.7)
XYZxyz(9.2740, 11.9684, 2.3937)
Luminance0.1197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6712 #1E1267
analogous
#674812 #5B6712 #306712
triadic
#5B6712 #125B67 #67125B
tetradic
#5B6712 #126748 #1E1267 #671230
square
#5B6712 #126748 #1E1267 #671230
split-complementary
#5B6712 #123067 #481267
monochromatic
#171A05 #2D3309 #5B6712 #899B1B #B7CF24

Accessibility & contrast

On white

6.19
#5B6712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5B6712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6712
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6712#FFFFFF#000000##FFFFFF
##5B67121.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6100
Deuteranopia (green-blind)
#6D611A
Tritanopia (blue-blind)
#616157
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b6712;
/* rgb */ color: rgb(91, 103, 18);
/* oklch */ color: oklch(48.7% 0.105 117.7);
Tailwind
colors: {
  custom: {
    50: '#8c9258',
    500: '#5b6712',
    950: '#000000',
  },
}
SCSS
$custom: #5b6712;
$custom-light: #8c9258;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6712",
  "rgb": {
    "r": 91,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 68.471,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.48727,
    "c": 0.10515,
    "h": 117.7
  },
  "luminance": 0.11968
}

Semantic roles & 50–950 ramp

primary
#5B6712
secondary
#45369F
accent
#3BED54
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D04
muted
#7D7D79

Preview Lab

Preview with #5B6712

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

Preview Lab → · Contrast checker → · Palette generator →

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