#5B5C12#5B5C12

#5B5C12 is a mid, moderate yellow. Relative luminance 0.099; OKLCH L 45.9% C 0.092 H 110.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5B5C12
RGBrgb(91, 92, 18)
HSLhsl(61, 67%, 22%)
HSVhsv(61, 80%, 36%)
CMYKcmyk(1.1%, 0%, 80.4%, 63.9%)
CIE-LABlab(37.70, -10.09, 39.36)
CIE-LCHlch(37.70, 40.63, 104.37°)
OKLaboklab(45.95% -0.032 0.0863)
OKLCHoklch(45.95% 0.092 110.3)
XYZxyz(8.2510, 9.9223, 2.0527)
Luminance0.0992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5C12 #13125C
analogous
#5C3812 #5B5C12 #365C12
triadic
#5B5C12 #125B5C #5C125B
tetradic
#5B5C12 #125C38 #13125C #5C1236
square
#5B5C12 #125C38 #13125C #5C1236
split-complementary
#5B5C12 #12365C #38125C
monochromatic
#191A05 #282908 #5B5C12 #8E8F1C #C0C226

Accessibility & contrast

On white

7.04
#5B5C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5B5C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5C12
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5C12#FFFFFF#000000##FFFFFF
##5B5C121.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645803
Deuteranopia (green-blind)
#655A18
Tritanopia (blue-blind)
#62564E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b5c12;
/* rgb */ color: rgb(91, 92, 18);
/* oklch */ color: oklch(45.9% 0.092 110.3);
Tailwind
colors: {
  custom: {
    50: '#8c8957',
    500: '#5b5c12',
    950: '#000000',
  },
}
SCSS
$custom: #5b5c12;
$custom-light: #8c8957;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5c12",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 60.811,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.45949,
    "c": 0.09205,
    "h": 110.3
  },
  "luminance": 0.09922
}

Semantic roles & 50–950 ramp

primary
#5B5C12
secondary
#373594
accent
#3EEA40
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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