#5F5017#5F5017

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

Color values

HEX#5F5017
RGBrgb(95, 80, 23)
HSLhsl(48, 61%, 23%)
HSVhsv(48, 76%, 37%)
CMYKcmyk(0%, 15.8%, 75.8%, 62.7%)
CIE-LABlab(34.46, -0.76, 34.31)
CIE-LCHlch(34.46, 34.32, 91.27°)
OKLaboklab(43.48% -0.0053 0.0765)
OKLCHoklch(43.48% 0.077 94)
XYZxyz(7.7430, 8.2325, 1.9916)
Luminance0.0823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5017 #17265F
analogous
#5F2C17 #5F5017 #4A5F17
triadic
#5F5017 #175F50 #50175F
tetradic
#5F5017 #175F2C #17265F #5F174A
square
#5F5017 #175F2C #17265F #5F174A
split-complementary
#5F5017 #174A5F #2C175F
monochromatic
#191506 #2E270B #5F5017 #907923 #C2A32F

Accessibility & contrast

On white

7.94
#5F5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F5017
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5017#FFFFFF#000000##FFFFFF
##5F50171.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0F
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#674944
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f5017;
/* rgb */ color: rgb(95, 80, 23);
/* oklch */ color: oklch(43.5% 0.077 94.0);
Tailwind
colors: {
  custom: {
    50: '#8f8058',
    500: '#5f5017',
    950: '#000000',
  },
}
SCSS
$custom: #5f5017;
$custom-light: #8f8058;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5017",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 47.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.4348,
    "c": 0.07668,
    "h": 94
  },
  "luminance": 0.08232
}

Semantic roles & 50–950 ramp

primary
#5F5017
secondary
#3C4F96
accent
#65E444
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5017

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

Preview Lab → · Contrast checker → · Palette generator →

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