#5F5312#5F5312

#5F5312 is a dark, moderate yellow. Relative luminance 0.087; OKLCH L 44.2% C 0.083 H 98.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5F5312
RGBrgb(95, 83, 18)
HSLhsl(51, 68%, 22%)
HSVhsv(51, 81%, 37%)
CMYKcmyk(0%, 12.6%, 81.1%, 62.7%)
CIE-LABlab(35.33, -2.83, 37.29)
CIE-LCHlch(35.33, 37.40, 94.34°)
OKLaboklab(44.15% -0.0118 0.0817)
OKLCHoklch(44.15% 0.083 98.2)
XYZxyz(7.9222, 8.6635, 1.8271)
Luminance0.0866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5312 #121E5F
analogous
#5F2C12 #5F5312 #455F12
triadic
#5F5312 #125F53 #53125F
tetradic
#5F5312 #125F2C #121E5F #5F1245
square
#5F5312 #125F2C #121E5F #5F1245
split-complementary
#5F5312 #12455F #2C125F
monochromatic
#1A1605 #2C2608 #5F5312 #92801C #C6AD25

Accessibility & contrast

On white

7.68
#5F5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5F5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5312
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5312#FFFFFF#000000##FFFFFF
##5F53121.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5106
Deuteranopia (green-blind)
#5F5516
Tritanopia (blue-blind)
#674C47
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f5312;
/* rgb */ color: rgb(95, 83, 18);
/* oklch */ color: oklch(44.2% 0.083 98.2);
Tailwind
colors: {
  custom: {
    50: '#8f8356',
    500: '#5f5312',
    950: '#000000',
  },
}
SCSS
$custom: #5f5312;
$custom-light: #8f8356;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5312",
  "rgb": {
    "r": 95,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 50.649,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.44154,
    "c": 0.08259,
    "h": 98.2
  },
  "luminance": 0.08663
}

Semantic roles & 50–950 ramp

primary
#5F5312
secondary
#364597
accent
#58EB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5312

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

Preview Lab → · Contrast checker → · Palette generator →

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