#5B5D12#5B5D12

#5B5D12 is a mid, moderate yellow. Relative luminance 0.101; OKLCH L 46.2% C 0.093 H 111.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5B5D12
RGBrgb(91, 93, 18)
HSLhsl(62, 68%, 22%)
HSVhsv(62, 81%, 36%)
CMYKcmyk(2.2%, 0%, 80.6%, 63.5%)
CIE-LABlab(38.02, -10.66, 39.65)
CIE-LCHlch(38.02, 41.06, 105.04°)
OKLaboklab(46.2% -0.0336 0.0869)
OKLCHoklch(46.2% 0.093 111.1)
XYZxyz(8.3382, 10.0967, 2.0818)
Luminance0.1010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5D12 #14125D
analogous
#5D3A12 #5B5D12 #365D12
triadic
#5B5D12 #125B5D #5D125B
tetradic
#5B5D12 #125D3A #14125D #5D1236
square
#5B5D12 #125D3A #14125D #5D1236
split-complementary
#5B5D12 #12365D #3A125D
monochromatic
#191A05 #292A08 #5B5D12 #8D901C #BFC426

Accessibility & contrast

On white

6.96
#5B5D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5B5D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5D12
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5D12#FFFFFF#000000##FFFFFF
##5B5D121.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655802
Deuteranopia (green-blind)
#655A18
Tritanopia (blue-blind)
#62574F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b5d12;
/* rgb */ color: rgb(91, 93, 18);
/* oklch */ color: oklch(46.2% 0.093 111.1);
Tailwind
colors: {
  custom: {
    50: '#8c8a57',
    500: '#5b5d12',
    950: '#000000',
  },
}
SCSS
$custom: #5b5d12;
$custom-light: #8c8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5d12",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 61.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.462,
    "c": 0.09319,
    "h": 111.1
  },
  "luminance": 0.10097
}

Semantic roles & 50–950 ramp

primary
#5B5D12
secondary
#383595
accent
#3DEA42
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5B5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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