#5F5D12#5F5D12

#5F5D12 is a mid, moderate yellow. Relative luminance 0.103; OKLCH L 46.6% C 0.092 H 107.9°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5F5D12
RGBrgb(95, 93, 18)
HSLhsl(58, 68%, 22%)
HSVhsv(58, 81%, 37%)
CMYKcmyk(0%, 2.1%, 81.1%, 62.7%)
CIE-LABlab(38.39, -8.71, 40.13)
CIE-LCHlch(38.39, 41.06, 102.25°)
OKLaboklab(46.59% -0.0284 0.0878)
OKLCHoklch(46.59% 0.092 107.9)
XYZxyz(8.7432, 10.3056, 2.1008)
Luminance0.1031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5D12 #12145F
analogous
#5F3712 #5F5D12 #3A5F12
triadic
#5F5D12 #125F5D #5D125F
tetradic
#5F5D12 #125F37 #12145F #5F123A
square
#5F5D12 #125F37 #12145F #5F123A
split-complementary
#5F5D12 #123A5F #37125F
monochromatic
#1A1905 #2C2B08 #5F5D12 #928F1C #C6C225

Accessibility & contrast

On white

6.86
#5F5D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5F5D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5D12
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5D12#FFFFFF#000000##FFFFFF
##5F5D121.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655902
Deuteranopia (green-blind)
#675C18
Tritanopia (blue-blind)
#66564F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f5d12;
/* rgb */ color: rgb(95, 93, 18);
/* oklch */ color: oklch(46.6% 0.092 107.9);
Tailwind
colors: {
  custom: {
    50: '#8f8a57',
    500: '#5f5d12',
    950: '#000000',
  },
}
SCSS
$custom: #5f5d12;
$custom-light: #8f8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5d12",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 58.442,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.46585,
    "c": 0.09224,
    "h": 107.9
  },
  "luminance": 0.10305
}

Semantic roles & 50–950 ramp

primary
#5F5D12
secondary
#363897
accent
#41EB3D
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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