#5F510F#5F510F

#5F510F is a dark, moderate yellow. Relative luminance 0.084; OKLCH L 43.7% C 0.083 H 96.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5F510F
RGBrgb(95, 81, 15)
HSLhsl(50, 73%, 22%)
HSVhsv(50, 84%, 37%)
CMYKcmyk(0%, 14.7%, 84.2%, 62.7%)
CIE-LABlab(34.71, -1.76, 37.87)
CIE-LCHlch(34.71, 37.92, 92.67°)
OKLaboklab(43.66% -0.0091 0.0823)
OKLCHoklch(43.66% 0.083 96.3)
XYZxyz(7.7484, 8.3527, 1.6559)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F510F #0F1D5F
analogous
#5F290F #5F510F #455F0F
triadic
#5F510F #0F5F51 #510F5F
tetradic
#5F510F #0F5F29 #0F1D5F #5F0F45
square
#5F510F #0F5F29 #0F1D5F #5F0F45
split-complementary
#5F510F #0F455F #290F5F
monochromatic
#1A1704 #2A2407 #5F510F #947E17 #C9AB20

Accessibility & contrast

On white

7.86
#5F510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F510F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F510F#FFFFFF#000000##FFFFFF
##5F510F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F02
Deuteranopia (green-blind)
#5E5414
Tritanopia (blue-blind)
#674A45
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f510f;
/* rgb */ color: rgb(95, 81, 15);
/* oklch */ color: oklch(43.7% 0.083 96.3);
Tailwind
colors: {
  custom: {
    50: '#908154',
    500: '#5f510f',
    950: '#000000',
  },
}
SCSS
$custom: #5f510f;
$custom-light: #908154;
$custom-dark: #000000;
JSON
{
  "hex": "#5f510f",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 49.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43656,
    "c": 0.08281,
    "h": 96.3
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

primary
#5F510F
secondary
#324498
accent
#58EF38
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F510F

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

Preview Lab → · Contrast checker → · Palette generator →

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