#5F501B#5F501B

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

Color values

HEX#5F501B
RGBrgb(95, 80, 27)
HSLhsl(47, 56%, 24%)
HSVhsv(47, 72%, 37%)
CMYKcmyk(0%, 15.8%, 71.6%, 62.7%)
CIE-LABlab(34.50, -0.51, 32.44)
CIE-LCHlch(34.50, 32.44, 90.90°)
OKLaboklab(43.52% -0.0041 0.0733)
OKLCHoklch(43.52% 0.073 93.2)
XYZxyz(7.7862, 8.2498, 2.2189)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F501B #1B2A5F
analogous
#5F2E1B #5F501B #4C5F1B
triadic
#5F501B #1B5F50 #501B5F
tetradic
#5F501B #1B5F2E #1B2A5F #5F1B4C
square
#5F501B #1B5F2E #1B2A5F #5F1B4C
split-complementary
#5F501B #1B4C5F #2E1B5F
monochromatic
#181407 #2F280D #5F501B #8F7829 #BEA036

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F501B#FFFFFF#000000##FFFFFF
##5F501B1.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)
#594F14
Deuteranopia (green-blind)
#5D531E
Tritanopia (blue-blind)
#674945
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f501b;
/* rgb */ color: rgb(95, 80, 27);
/* oklch */ color: oklch(43.5% 0.073 93.2);
Tailwind
colors: {
  custom: {
    50: '#8f805a',
    500: '#5f501b',
    950: '#000000',
  },
}
SCSS
$custom: #5f501b;
$custom-light: #8f805a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f501b",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 46.765,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.4352,
    "c": 0.07342,
    "h": 93.2
  },
  "luminance": 0.08249
}

Semantic roles & 50–950 ramp

primary
#5F501B
secondary
#415495
accent
#6ADF49
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F501B

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

Preview Lab → · Contrast checker → · Palette generator →

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