#5B5F12#5B5F12

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

Color values

HEX#5B5F12
RGBrgb(91, 95, 18)
HSLhsl(63, 68%, 22%)
HSVhsv(63, 81%, 37%)
CMYKcmyk(4.2%, 0%, 81.1%, 62.7%)
CIE-LABlab(38.64, -11.79, 40.23)
CIE-LCHlch(38.64, 41.92, 106.34°)
OKLaboklab(46.7% -0.0367 0.0882)
OKLCHoklch(46.7% 0.096 112.6)
XYZxyz(8.5161, 10.4524, 2.1411)
Luminance0.1045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5F12 #16125F
analogous
#5F3D12 #5B5F12 #355F12
triadic
#5B5F12 #125B5F #5F125B
tetradic
#5B5F12 #125F3D #16125F #5F1235
square
#5B5F12 #125F3D #16125F #5F1235
split-complementary
#5B5F12 #12355F #3D125F
monochromatic
#191A05 #2A2C08 #5B5F12 #8C921C #BEC625

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B5F12#FFFFFF#000000##FFFFFF
##5B5F121.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)
#675A01
Deuteranopia (green-blind)
#675C19
Tritanopia (blue-blind)
#625951
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b5f12;
/* rgb */ color: rgb(91, 95, 18);
/* oklch */ color: oklch(46.7% 0.096 112.6);
Tailwind
colors: {
  custom: {
    50: '#8c8c57',
    500: '#5b5f12',
    950: '#000000',
  },
}
SCSS
$custom: #5b5f12;
$custom-light: #8c8c57;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5f12",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 63.117,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.46701,
    "c": 0.0955,
    "h": 112.6
  },
  "luminance": 0.10452
}

Semantic roles & 50–950 ramp

primary
#5B5F12
secondary
#3B3697
accent
#3DEB46
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5B5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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