#5D510F#5D510F

#5D510F is a dark, moderate yellow. Relative luminance 0.082; OKLCH L 43.4% C 0.083 H 98.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5D510F
RGBrgb(93, 81, 15)
HSLhsl(51, 72%, 21%)
HSVhsv(51, 84%, 36%)
CMYKcmyk(0%, 12.9%, 83.9%, 63.5%)
CIE-LABlab(34.49, -2.77, 37.60)
CIE-LCHlch(34.49, 37.70, 94.21°)
OKLaboklab(43.44% -0.0119 0.0818)
OKLCHoklch(43.44% 0.083 98.2)
XYZxyz(7.5432, 8.2469, 1.6463)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D510F #0F1B5D
analogous
#5D2A0F #5D510F #425D0F
triadic
#5D510F #0F5D51 #510F5D
tetradic
#5D510F #0F5D2A #0F1B5D #5D0F42
square
#5D510F #0F5D2A #0F1B5D #5D0F42
split-complementary
#5D510F #0F425D #2A0F5D
monochromatic
#1A1704 #282306 #5D510F #927F17 #C6AD20

Accessibility & contrast

On white

7.93
#5D510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5D510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D510F
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D510F#FFFFFF#000000##FFFFFF
##5D510F1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F02
Deuteranopia (green-blind)
#5D5314
Tritanopia (blue-blind)
#654A45
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d510f;
/* rgb */ color: rgb(93, 81, 15);
/* oklch */ color: oklch(43.4% 0.083 98.2);
Tailwind
colors: {
  custom: {
    50: '#8e8154',
    500: '#5d510f',
    950: '#000000',
  },
}
SCSS
$custom: #5d510f;
$custom-light: #8e8154;
$custom-dark: #000000;
JSON
{
  "hex": "#5d510f",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 50.769,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43435,
    "c": 0.08268,
    "h": 98.2
  },
  "luminance": 0.08247
}

Semantic roles & 50–950 ramp

primary
#5D510F
secondary
#314196
accent
#55EF39
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5D510F

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

Preview Lab → · Contrast checker → · Palette generator →

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