#5F4C12#5F4C12

#5F4C12 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.5% C 0.078 H 89.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5F4C12
RGBrgb(95, 76, 18)
HSLhsl(45, 68%, 22%)
HSVhsv(45, 81%, 37%)
CMYKcmyk(0%, 20%, 81.1%, 62.7%)
CIE-LABlab(33.23, 1.41, 35.32)
CIE-LCHlch(33.23, 35.35, 87.71°)
OKLaboklab(42.5% 0.0003 0.0775)
OKLCHoklch(42.5% 0.078 89.8)
XYZxyz(7.4134, 7.6459, 1.6575)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4C12 #12255F
analogous
#5F2612 #5F4C12 #4C5F12
triadic
#5F4C12 #125F4C #4C125F
tetradic
#5F4C12 #125F26 #12255F #5F124C
square
#5F4C12 #125F26 #12255F #5F124C
split-complementary
#5F4C12 #124C5F #26125F
monochromatic
#1A1505 #2C2308 #5F4C12 #92751C #C69E25

Accessibility & contrast

On white

8.30
#5F4C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5F4C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4C12
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4C12#FFFFFF#000000##FFFFFF
##5F4C121.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B08
Deuteranopia (green-blind)
#5A5015
Tritanopia (blue-blind)
#684541
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f4c12;
/* rgb */ color: rgb(95, 76, 18);
/* oklch */ color: oklch(42.5% 0.078 89.8);
Tailwind
colors: {
  custom: {
    50: '#907d55',
    500: '#5f4c12',
    950: '#000000',
  },
}
SCSS
$custom: #5f4c12;
$custom-light: #907d55;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4c12",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 45.195,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42499,
    "c": 0.07753,
    "h": 89.8
  },
  "luminance": 0.07645
}

Semantic roles & 50–950 ramp

primary
#5F4C12
secondary
#364E97
accent
#68EB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0903
muted
#7E7B78

Preview Lab

Preview with #5F4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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