#5F4D12#5F4D12

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

Color values

HEX#5F4D12
RGBrgb(95, 77, 18)
HSLhsl(46, 68%, 22%)
HSVhsv(46, 81%, 37%)
CMYKcmyk(0%, 18.9%, 81.1%, 62.7%)
CIE-LABlab(33.53, 0.80, 35.60)
CIE-LCHlch(33.53, 35.61, 88.71°)
OKLaboklab(42.73% -0.0015 0.0781)
OKLCHoklch(42.73% 0.078 91.1)
XYZxyz(7.4828, 7.7848, 1.6806)
Luminance0.0778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4D12 #12245F
analogous
#5F2712 #5F4D12 #4B5F12
triadic
#5F4D12 #125F4D #4D125F
tetradic
#5F4D12 #125F27 #12245F #5F124B
square
#5F4D12 #125F27 #12245F #5F124B
split-complementary
#5F4D12 #124B5F #27125F
monochromatic
#1A1505 #2C2308 #5F4D12 #92771C #C6A025

Accessibility & contrast

On white

8.21
#5F4D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5F4D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4D12
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4D12#FFFFFF#000000##FFFFFF
##5F4D121.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C08
Deuteranopia (green-blind)
#5B5115
Tritanopia (blue-blind)
#674642
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f4d12;
/* rgb */ color: rgb(95, 77, 18);
/* oklch */ color: oklch(42.7% 0.078 91.1);
Tailwind
colors: {
  custom: {
    50: '#907e55',
    500: '#5f4d12',
    950: '#000000',
  },
}
SCSS
$custom: #5f4d12;
$custom-light: #907e55;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4d12",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 45.974,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42733,
    "c": 0.07814,
    "h": 91.1
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#5F4D12
secondary
#364C97
accent
#66EB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0903
muted
#7E7B78

Preview Lab

Preview with #5F4D12

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

Preview Lab → · Contrast checker → · Palette generator →

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