#5F540F#5F540F

#5F540F is a dark, moderate yellow. Relative luminance 0.088; OKLCH L 44.4% C 0.085 H 99.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5F540F
RGBrgb(95, 84, 15)
HSLhsl(52, 73%, 22%)
HSVhsv(52, 84%, 37%)
CMYKcmyk(0%, 11.6%, 84.2%, 62.7%)
CIE-LABlab(35.61, -3.56, 38.69)
CIE-LCHlch(35.61, 38.85, 95.26°)
OKLaboklab(44.37% -0.0142 0.0841)
OKLCHoklch(44.37% 0.085 99.6)
XYZxyz(7.9763, 8.8084, 1.7319)
Luminance0.0881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F540F #0F1A5F
analogous
#5F2C0F #5F540F #425F0F
triadic
#5F540F #0F5F54 #540F5F
tetradic
#5F540F #0F5F2C #0F1A5F #5F0F42
square
#5F540F #0F5F2C #0F1A5F #5F0F42
split-complementary
#5F540F #0F425F #2C0F5F
monochromatic
#1A1704 #2A2507 #5F540F #948317 #C9B120

Accessibility & contrast

On white

7.60
#5F540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F540F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F540F#FFFFFF#000000##FFFFFF
##5F540F1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5101
Deuteranopia (green-blind)
#605514
Tritanopia (blue-blind)
#674D47
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f540f;
/* rgb */ color: rgb(95, 84, 15);
/* oklch */ color: oklch(44.4% 0.085 99.6);
Tailwind
colors: {
  custom: {
    50: '#908354',
    500: '#5f540f',
    950: '#000000',
  },
}
SCSS
$custom: #5f540f;
$custom-light: #908354;
$custom-dark: #000000;
JSON
{
  "hex": "#5f540f",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 51.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.44374,
    "c": 0.08525,
    "h": 99.6
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#5F540F
secondary
#324098
accent
#52EF38
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F540F

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

Preview Lab → · Contrast checker → · Palette generator →

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