#5B5F0F#5B5F0F

#5B5F0F is a mid, moderate yellow. Relative luminance 0.104; OKLCH L 46.7% C 0.097 H 112.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5B5F0F
RGBrgb(91, 95, 15)
HSLhsl(63, 73%, 22%)
HSVhsv(63, 84%, 37%)
CMYKcmyk(4.2%, 0%, 84.2%, 62.7%)
CIE-LABlab(38.63, -11.92, 41.24)
CIE-LCHlch(38.63, 42.93, 106.13°)
OKLaboklab(46.68% -0.0373 0.0897)
OKLCHoklch(46.68% 0.097 112.6)
XYZxyz(8.4931, 10.4433, 2.0202)
Luminance0.1044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5F0F #130F5F
analogous
#5F3B0F #5B5F0F #335F0F
triadic
#5B5F0F #0F5B5F #5F0F5B
tetradic
#5B5F0F #0F5F3B #130F5F #5F0F33
square
#5B5F0F #0F5F3B #130F5F #5F0F33
split-complementary
#5B5F0F #0F335F #3B0F5F
monochromatic
#191A04 #282A07 #5B5F0F #8E9417 #C0C920

Accessibility & contrast

On white

6.80
#5B5F0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5B5F0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5F0F
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5F0F#FFFFFF#000000##FFFFFF
##5B5F0F1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A00
Deuteranopia (green-blind)
#675C17
Tritanopia (blue-blind)
#625950
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b5f0f;
/* rgb */ color: rgb(91, 95, 15);
/* oklch */ color: oklch(46.7% 0.097 112.6);
Tailwind
colors: {
  custom: {
    50: '#8c8c56',
    500: '#5b5f0f',
    950: '#000000',
  },
}
SCSS
$custom: #5b5f0f;
$custom-light: #8c8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5f0f",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 63,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.46684,
    "c": 0.09717,
    "h": 112.6
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#5B5F0F
secondary
#373298
accent
#38EF42
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5B5F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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