#5F5812#5F5812

#5F5812 is a mid, moderate yellow. Relative luminance 0.095; OKLCH L 45.4% C 0.087 H 103.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5F5812
RGBrgb(95, 88, 18)
HSLhsl(55, 68%, 22%)
HSVhsv(55, 81%, 37%)
CMYKcmyk(0%, 7.4%, 81.1%, 62.7%)
CIE-LABlab(36.85, -5.80, 38.71)
CIE-LCHlch(36.85, 39.14, 98.52°)
OKLaboklab(45.36% -0.0202 0.0848)
OKLCHoklch(45.36% 0.087 103.4)
XYZxyz(8.3186, 9.4564, 1.9592)
Luminance0.0946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5812 #12195F
analogous
#5F3112 #5F5812 #405F12
triadic
#5F5812 #125F58 #58125F
tetradic
#5F5812 #125F31 #12195F #5F1240
square
#5F5812 #125F31 #12195F #5F1240
split-complementary
#5F5812 #12405F #31125F
monochromatic
#1A1805 #2C2808 #5F5812 #92881C #C6B725

Accessibility & contrast

On white

7.26
#5F5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5812
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5812#FFFFFF#000000##FFFFFF
##5F58121.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615504
Deuteranopia (green-blind)
#635817
Tritanopia (blue-blind)
#67514B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f5812;
/* rgb */ color: rgb(95, 88, 18);
/* oklch */ color: oklch(45.4% 0.087 103.4);
Tailwind
colors: {
  custom: {
    50: '#8f8656',
    500: '#5f5812',
    950: '#000000',
  },
}
SCSS
$custom: #5f5812;
$custom-light: #8f8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5812",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 54.545,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45361,
    "c": 0.08713,
    "h": 103.4
  },
  "luminance": 0.09456
}

Semantic roles & 50–950 ramp

primary
#5F5812
secondary
#363E97
accent
#4DEB3D
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5812

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

Preview Lab → · Contrast checker → · Palette generator →

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