#5B5912#5B5912

#5B5912 is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.2% C 0.089 H 107.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5B5912
RGBrgb(91, 89, 18)
HSLhsl(58, 67%, 21%)
HSVhsv(58, 80%, 36%)
CMYKcmyk(0%, 2.2%, 80.2%, 64.3%)
CIE-LABlab(36.77, -8.36, 38.49)
CIE-LCHlch(36.77, 39.39, 102.25°)
OKLaboklab(45.2% -0.0271 0.0845)
OKLCHoklch(45.2% 0.089 107.8)
XYZxyz(7.9963, 9.4128, 1.9678)
Luminance0.0941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5912 #12145B
analogous
#5B3512 #5B5912 #395B12
triadic
#5B5912 #125B59 #59125B
tetradic
#5B5912 #125B35 #12145B #5B1239
square
#5B5912 #125B35 #12145B #5B1239
split-complementary
#5B5912 #12395B #35125B
monochromatic
#1A1905 #282708 #5B5912 #8E8B1C #C1BD26

Accessibility & contrast

On white

7.29
#5B5912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B5912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5912
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5912#FFFFFF#000000##FFFFFF
##5B59121.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615504
Deuteranopia (green-blind)
#625818
Tritanopia (blue-blind)
#62534C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b5912;
/* rgb */ color: rgb(91, 89, 18);
/* oklch */ color: oklch(45.2% 0.089 107.8);
Tailwind
colors: {
  custom: {
    50: '#8c8756',
    500: '#5b5912',
    950: '#000000',
  },
}
SCSS
$custom: #5b5912;
$custom-light: #8c8756;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5912",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 58.356,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.45202,
    "c": 0.08873,
    "h": 107.8
  },
  "luminance": 0.09413
}

Semantic roles & 50–950 ramp

primary
#5B5912
secondary
#353893
accent
#43EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5912

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

Preview Lab → · Contrast checker → · Palette generator →

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