#5F5112#5F5112

#5F5112 is a dark, moderate yellow. Relative luminance 0.084; OKLCH L 43.7% C 0.081 H 96.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5F5112
RGBrgb(95, 81, 18)
HSLhsl(49, 68%, 22%)
HSVhsv(49, 81%, 37%)
CMYKcmyk(0%, 14.7%, 81.1%, 62.7%)
CIE-LABlab(34.73, -1.63, 36.73)
CIE-LCHlch(34.73, 36.77, 92.54°)
OKLaboklab(43.68% -0.0084 0.0805)
OKLCHoklch(43.68% 0.081 96)
XYZxyz(7.7713, 8.3619, 1.7768)
Luminance0.0836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5112 #12205F
analogous
#5F2B12 #5F5112 #475F12
triadic
#5F5112 #125F51 #51125F
tetradic
#5F5112 #125F2B #12205F #5F1247
square
#5F5112 #125F2B #12205F #5F1247
split-complementary
#5F5112 #12475F #2B125F
monochromatic
#1A1605 #2C2508 #5F5112 #927D1C #C6A925

Accessibility & contrast

On white

7.86
#5F5112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F5112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5112
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5112#FFFFFF#000000##FFFFFF
##5F51121.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F06
Deuteranopia (green-blind)
#5E5416
Tritanopia (blue-blind)
#674A45
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f5112;
/* rgb */ color: rgb(95, 81, 18);
/* oklch */ color: oklch(43.7% 0.081 96.0);
Tailwind
colors: {
  custom: {
    50: '#8f8155',
    500: '#5f5112',
    950: '#000000',
  },
}
SCSS
$custom: #5f5112;
$custom-light: #8f8155;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5112",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 49.091,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43677,
    "c": 0.08097,
    "h": 96
  },
  "luminance": 0.08361
}

Semantic roles & 50–950 ramp

primary
#5F5112
secondary
#364797
accent
#5CEB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5112

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

Preview Lab → · Contrast checker → · Palette generator →

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