#5D5912#5D5912

#5D5912 is a mid, moderate yellow. Relative luminance 0.095; OKLCH L 45.4% C 0.088 H 106.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5D5912
RGBrgb(93, 89, 18)
HSLhsl(57, 68%, 22%)
HSVhsv(57, 81%, 36%)
CMYKcmyk(0%, 4.3%, 80.6%, 63.5%)
CIE-LABlab(36.96, -7.37, 38.74)
CIE-LCHlch(36.96, 39.44, 100.78°)
OKLaboklab(45.4% -0.0245 0.0849)
OKLCHoklch(45.4% 0.088 106.1)
XYZxyz(8.1961, 9.5159, 1.9772)
Luminance0.0952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5912 #12165D
analogous
#5D3412 #5D5912 #3C5D12
triadic
#5D5912 #125D59 #59125D
tetradic
#5D5912 #125D34 #12165D #5D123C
square
#5D5912 #125D34 #12165D #5D123C
split-complementary
#5D5912 #123C5D #34125D
monochromatic
#1A1905 #2A2808 #5D5912 #908A1C #C4BB26

Accessibility & contrast

On white

7.23
#5D5912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5D5912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D5912
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5912#FFFFFF#000000##FFFFFF
##5D59121.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d5912;
/* rgb */ color: rgb(93, 89, 18);
/* oklch */ color: oklch(45.4% 0.088 106.1);
Tailwind
colors: {
  custom: {
    50: '#8e8756',
    500: '#5d5912',
    950: '#000000',
  },
}
SCSS
$custom: #5d5912;
$custom-light: #8e8756;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5912",
  "rgb": {
    "r": 93,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 56.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.45402,
    "c": 0.08838,
    "h": 106.1
  },
  "luminance": 0.09516
}

Semantic roles & 50–950 ramp

primary
#5D5912
secondary
#353B95
accent
#47EA3D
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0D0B03
muted
#7D7C78

Preview Lab

Preview with #5D5912

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

Preview Lab → · Contrast checker → · Palette generator →

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