#5D5812#5D5812

#5D5812 is a mid, moderate yellow. Relative luminance 0.093; OKLCH L 45.2% C 0.087 H 105.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5D5812
RGBrgb(93, 88, 18)
HSLhsl(56, 68%, 22%)
HSVhsv(56, 81%, 36%)
CMYKcmyk(0%, 5.4%, 80.6%, 63.5%)
CIE-LABlab(36.65, -6.79, 38.45)
CIE-LCHlch(36.65, 39.05, 100.01°)
OKLaboklab(45.16% -0.0229 0.0843)
OKLCHoklch(45.16% 0.087 105.2)
XYZxyz(8.1135, 9.3506, 1.9496)
Luminance0.0935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5812 #12175D
analogous
#5D3312 #5D5812 #3D5D12
triadic
#5D5812 #125D58 #58125D
tetradic
#5D5812 #125D33 #12175D #5D123D
square
#5D5812 #125D33 #12175D #5D123D
split-complementary
#5D5812 #123D5D #33125D
monochromatic
#1A1805 #2A2708 #5D5812 #90891C #C4B926

Accessibility & contrast

On white

7.32
#5D5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5D5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D5812
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5812#FFFFFF#000000##FFFFFF
##5D58121.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605504
Deuteranopia (green-blind)
#625817
Tritanopia (blue-blind)
#65514B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d5812;
/* rgb */ color: rgb(93, 88, 18);
/* oklch */ color: oklch(45.2% 0.087 105.2);
Tailwind
colors: {
  custom: {
    50: '#8e8656',
    500: '#5d5812',
    950: '#000000',
  },
}
SCSS
$custom: #5d5812;
$custom-light: #8e8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5812",
  "rgb": {
    "r": 93,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 56,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.45156,
    "c": 0.08735,
    "h": 105.2
  },
  "luminance": 0.0935
}

Semantic roles & 50–950 ramp

primary
#5D5812
secondary
#353C95
accent
#49EA3D
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0D0B03
muted
#7D7C78

Preview Lab

Preview with #5D5812

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

Preview Lab → · Contrast checker → · Palette generator →

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