#5B6515#5B6515

#5B6515 is a mid, moderate yellow. Relative luminance 0.116; OKLCH L 48.2% C 0.101 H 116.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5B6515
RGBrgb(91, 101, 21)
HSLhsl(68, 66%, 24%)
HSVhsv(68, 79%, 40%)
CMYKcmyk(9.9%, 0%, 79.2%, 60.4%)
CIE-LABlab(40.55, -14.98, 40.91)
CIE-LCHlch(40.55, 43.57, 110.11°)
OKLaboklab(48.24% -0.0453 0.0902)
OKLCHoklch(48.24% 0.101 116.7)
XYZxyz(9.1037, 11.5858, 2.4660)
Luminance0.1159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6515 #1F1565
analogous
#654715 #5B6515 #336515
triadic
#5B6515 #155B65 #65155B
tetradic
#5B6515 #156547 #1F1565 #651533
square
#5B6515 #156547 #1F1565 #651533
split-complementary
#5B6515 #153365 #471565
monochromatic
#171905 #2D320A #5B6515 #899820 #B6CA2A

Accessibility & contrast

On white

6.33
#5B6515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5B6515 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6515
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6515#FFFFFF#000000##FFFFFF
##5B65151.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F04
Deuteranopia (green-blind)
#6C601C
Tritanopia (blue-blind)
#615F56
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b6515;
/* rgb */ color: rgb(91, 101, 21);
/* oklch */ color: oklch(48.2% 0.101 116.7);
Tailwind
colors: {
  custom: {
    50: '#8c9059',
    500: '#5b6515',
    950: '#000000',
  },
}
SCSS
$custom: #5b6515;
$custom-light: #8c9059;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6515",
  "rgb": {
    "r": 91,
    "g": 101,
    "b": 21
  },
  "hsl": {
    "h": 67.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.48237,
    "c": 0.10092,
    "h": 116.7
  },
  "luminance": 0.11586
}

Semantic roles & 50–950 ramp

primary
#5B6515
secondary
#463A9C
accent
#3FE954
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5B6515

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

Preview Lab → · Contrast checker → · Palette generator →

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