#5B5A0F#5B5A0F

#5B5A0F is a mid, moderate yellow. Relative luminance 0.096; OKLCH L 45.4% C 0.092 H 108.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5B5A0F
RGBrgb(91, 90, 15)
HSLhsl(59, 72%, 21%)
HSVhsv(59, 84%, 36%)
CMYKcmyk(0%, 1.1%, 83.5%, 64.3%)
CIE-LABlab(37.06, -9.07, 39.84)
CIE-LCHlch(37.06, 40.86, 102.83°)
OKLaboklab(45.43% -0.0294 0.0867)
OKLCHoklch(45.43% 0.092 108.7)
XYZxyz(8.0571, 9.5712, 1.8749)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5A0F #0F105B
analogous
#5B340F #5B5A0F #365B0F
triadic
#5B5A0F #0F5B5A #5A0F5B
tetradic
#5B5A0F #0F5B34 #0F105B #5B0F36
square
#5B5A0F #0F5B34 #0F105B #5B0F36
split-complementary
#5B5A0F #0F365B #340F5B
monochromatic
#1A1A04 #262606 #5B5A0F #908E18 #C4C220

Accessibility & contrast

On white

7.21
#5B5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5A0F
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5A0F#FFFFFF#000000##FFFFFF
##5B5A0F1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#635816
Tritanopia (blue-blind)
#62544C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b5a0f;
/* rgb */ color: rgb(91, 90, 15);
/* oklch */ color: oklch(45.4% 0.092 108.7);
Tailwind
colors: {
  custom: {
    50: '#8c8855',
    500: '#5b5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #5b5a0f;
$custom-light: #8c8855;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5a0f",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 59.211,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.45432,
    "c": 0.09157,
    "h": 108.7
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#5B5A0F
secondary
#313395
accent
#3CEE39
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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