#5F5C12#5F5C12

#5F5C12 is a mid, moderate yellow. Relative luminance 0.101; OKLCH L 46.3% C 0.091 H 107.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5F5C12
RGBrgb(95, 92, 18)
HSLhsl(58, 68%, 22%)
HSVhsv(58, 81%, 37%)
CMYKcmyk(0%, 3.2%, 81.1%, 62.7%)
CIE-LABlab(38.08, -8.13, 39.84)
CIE-LCHlch(38.08, 40.66, 101.54°)
OKLaboklab(46.34% -0.0268 0.0872)
OKLCHoklch(46.34% 0.091 107.1)
XYZxyz(8.6560, 10.1312, 2.0717)
Luminance0.1013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5C12 #12155F
analogous
#5F3512 #5F5C12 #3C5F12
triadic
#5F5C12 #125F5C #5C125F
tetradic
#5F5C12 #125F35 #12155F #5F123C
square
#5F5C12 #125F35 #12155F #5F123C
split-complementary
#5F5C12 #123C5F #35125F
monochromatic
#1A1905 #2C2A08 #5F5C12 #928E1C #C6C025

Accessibility & contrast

On white

6.94
#5F5C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5F5C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5C12
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5C12#FFFFFF#000000##FFFFFF
##5F5C121.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655803
Deuteranopia (green-blind)
#665B18
Tritanopia (blue-blind)
#67554E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f5c12;
/* rgb */ color: rgb(95, 92, 18);
/* oklch */ color: oklch(46.3% 0.091 107.1);
Tailwind
colors: {
  custom: {
    50: '#8f8957',
    500: '#5f5c12',
    950: '#000000',
  },
}
SCSS
$custom: #5f5c12;
$custom-light: #8f8957;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5c12",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 57.662,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.46339,
    "c": 0.09119,
    "h": 107.1
  },
  "luminance": 0.10131
}

Semantic roles & 50–950 ramp

primary
#5F5C12
secondary
#363997
accent
#44EB3D
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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