#5F4E12#5F4E12

#5F4E12 is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 43.0% C 0.079 H 92.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5F4E12
RGBrgb(95, 78, 18)
HSLhsl(47, 68%, 22%)
HSVhsv(47, 81%, 37%)
CMYKcmyk(0%, 17.9%, 81.1%, 62.7%)
CIE-LABlab(33.83, 0.19, 35.88)
CIE-LCHlch(33.83, 35.88, 89.70°)
OKLaboklab(42.97% -0.0032 0.0787)
OKLCHoklch(42.97% 0.079 92.4)
XYZxyz(7.5533, 7.9258, 1.7041)
Luminance0.0793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4E12 #12235F
analogous
#5F2712 #5F4E12 #4A5F12
triadic
#5F4E12 #125F4E #4E125F
tetradic
#5F4E12 #125F27 #12235F #5F124A
square
#5F4E12 #125F27 #12235F #5F124A
split-complementary
#5F4E12 #124A5F #27125F
monochromatic
#1A1505 #2C2408 #5F4E12 #92781C #C6A225

Accessibility & contrast

On white

8.12
#5F4E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5F4E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4E12
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4E12#FFFFFF#000000##FFFFFF
##5F4E121.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D07
Deuteranopia (green-blind)
#5C5216
Tritanopia (blue-blind)
#674742
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f4e12;
/* rgb */ color: rgb(95, 78, 18);
/* oklch */ color: oklch(43.0% 0.079 92.4);
Tailwind
colors: {
  custom: {
    50: '#907f55',
    500: '#5f4e12',
    950: '#000000',
  },
}
SCSS
$custom: #5f4e12;
$custom-light: #907f55;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4e12",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 46.753,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42967,
    "c": 0.0788,
    "h": 92.4
  },
  "luminance": 0.07925
}

Semantic roles & 50–950 ramp

primary
#5F4E12
secondary
#364B97
accent
#63EB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F4E12

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

Preview Lab → · Contrast checker → · Palette generator →

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