#5B5A12#5B5A12

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

Color values

HEX#5B5A12
RGBrgb(91, 90, 18)
HSLhsl(59, 67%, 21%)
HSVhsv(59, 80%, 36%)
CMYKcmyk(0%, 1.1%, 80.2%, 64.3%)
CIE-LABlab(37.08, -8.94, 38.78)
CIE-LCHlch(37.08, 39.80, 102.98°)
OKLaboklab(45.45% -0.0288 0.0851)
OKLCHoklch(45.45% 0.09 108.7)
XYZxyz(8.0800, 9.5804, 1.9957)
Luminance0.0958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5A12 #12135B
analogous
#5B3612 #5B5A12 #385B12
triadic
#5B5A12 #125B5A #5A125B
tetradic
#5B5A12 #125B36 #12135B #5B1238
square
#5B5A12 #125B36 #12135B #5B1238
split-complementary
#5B5A12 #12385B #36125B
monochromatic
#1A1905 #282708 #5B5A12 #8E8D1C #C1BF26

Accessibility & contrast

On white

7.20
#5B5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5A12
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5A12#FFFFFF#000000##FFFFFF
##5B5A121.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b5a12;
/* rgb */ color: rgb(91, 90, 18);
/* oklch */ color: oklch(45.5% 0.090 108.7);
Tailwind
colors: {
  custom: {
    50: '#8c8856',
    500: '#5b5a12',
    950: '#000000',
  },
}
SCSS
$custom: #5b5a12;
$custom-light: #8c8856;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5a12",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 59.178,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.45451,
    "c": 0.08982,
    "h": 108.7
  },
  "luminance": 0.0958
}

Semantic roles & 50–950 ramp

primary
#5B5A12
secondary
#353793
accent
#40EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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