#5F5712#5F5712

#5F5712 is a mid, moderate yellow. Relative luminance 0.093; OKLCH L 45.1% C 0.086 H 102.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5F5712
RGBrgb(95, 87, 18)
HSLhsl(54, 68%, 22%)
HSVhsv(54, 81%, 37%)
CMYKcmyk(0%, 8.4%, 81.1%, 62.7%)
CIE-LABlab(36.54, -5.21, 38.43)
CIE-LCHlch(36.54, 38.78, 97.72°)
OKLaboklab(45.12% -0.0186 0.0842)
OKLCHoklch(45.12% 0.086 102.4)
XYZxyz(8.2371, 9.2933, 1.9321)
Luminance0.0929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5712 #121A5F
analogous
#5F3012 #5F5712 #415F12
triadic
#5F5712 #125F57 #57125F
tetradic
#5F5712 #125F30 #121A5F #5F1241
square
#5F5712 #125F30 #121A5F #5F1241
split-complementary
#5F5712 #12415F #30125F
monochromatic
#1A1805 #2C2808 #5F5712 #92861C #C6B525

Accessibility & contrast

On white

7.35
#5F5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5F5712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5712
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5712#FFFFFF#000000##FFFFFF
##5F57121.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#625717
Tritanopia (blue-blind)
#67504A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f5712;
/* rgb */ color: rgb(95, 87, 18);
/* oklch */ color: oklch(45.1% 0.086 102.4);
Tailwind
colors: {
  custom: {
    50: '#8f8656',
    500: '#5f5712',
    950: '#000000',
  },
}
SCSS
$custom: #5f5712;
$custom-light: #8f8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5712",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 53.766,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45118,
    "c": 0.08617,
    "h": 102.4
  },
  "luminance": 0.09293
}

Semantic roles & 50–950 ramp

primary
#5F5712
secondary
#364097
accent
#4FEB3D
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5712

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

Preview Lab → · Contrast checker → · Palette generator →

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