#5F4D0C#5F4D0C

#5F4D0C is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.7% C 0.082 H 92.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5F4D0C
RGBrgb(95, 77, 12)
HSLhsl(47, 78%, 21%)
HSVhsv(47, 87%, 37%)
CMYKcmyk(0%, 18.9%, 87.4%, 62.7%)
CIE-LABlab(33.49, 0.55, 37.87)
CIE-LCHlch(33.49, 37.88, 89.17°)
OKLaboklab(42.69% -0.0029 0.0816)
OKLCHoklch(42.69% 0.082 92)
XYZxyz(7.4400, 7.7677, 1.4552)
Luminance0.0777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4D0C #0C1E5F
analogous
#5F230C #5F4D0C #475F0C
triadic
#5F4D0C #0C5F4D #4D0C5F
tetradic
#5F4D0C #0C5F23 #0C1E5F #5F0C47
square
#5F4D0C #0C5F23 #0C1E5F #5F0C47
split-complementary
#5F4D0C #0C475F #230C5F
monochromatic
#1B1603 #292105 #5F4D0C #957913 #CCA51A

Accessibility & contrast

On white

8.22
#5F4D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5F4D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4D0C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4D0C#FFFFFF#000000##FFFFFF
##5F4D0C1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#5B5111
Tritanopia (blue-blind)
#684641
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f4d0c;
/* rgb */ color: rgb(95, 77, 12);
/* oklch */ color: oklch(42.7% 0.082 92.0);
Tailwind
colors: {
  custom: {
    50: '#907e52',
    500: '#5f4d0c',
    950: '#000000',
  },
}
SCSS
$custom: #5f4d0c;
$custom-light: #907e52;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4d0c",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 46.988,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42692,
    "c": 0.08164,
    "h": 92
  },
  "luminance": 0.07767
}

Semantic roles & 50–950 ramp

primary
#5F4D0C
secondary
#2D4599
accent
#5DF434
background
#F9F7F4
surface
#F1EEE7
border
#CBC9C3
text
#0D0902
muted
#7E7B78

Preview Lab

Preview with #5F4D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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