#5F5A12#5F5A12

#5F5A12 is a mid, moderate yellow. Relative luminance 0.098; OKLCH L 45.8% C 0.089 H 105.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5F5A12
RGBrgb(95, 90, 18)
HSLhsl(56, 68%, 22%)
HSVhsv(56, 81%, 37%)
CMYKcmyk(0%, 5.3%, 81.1%, 62.7%)
CIE-LABlab(37.46, -6.97, 39.28)
CIE-LCHlch(37.46, 39.89, 100.07°)
OKLaboklab(45.85% -0.0235 0.086)
OKLCHoklch(45.85% 0.089 105.3)
XYZxyz(8.4850, 9.7892, 2.0147)
Luminance0.0979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5A12 #12175F
analogous
#5F3412 #5F5A12 #3E5F12
triadic
#5F5A12 #125F5A #5A125F
tetradic
#5F5A12 #125F34 #12175F #5F123E
square
#5F5A12 #125F34 #12175F #5F123E
split-complementary
#5F5A12 #123E5F #34125F
monochromatic
#1A1805 #2C2908 #5F5A12 #928B1C #C6BB25

Accessibility & contrast

On white

7.10
#5F5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5A12
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5A12#FFFFFF#000000##FFFFFF
##5F5A121.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635603
Deuteranopia (green-blind)
#645A18
Tritanopia (blue-blind)
#67534C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f5a12;
/* rgb */ color: rgb(95, 90, 18);
/* oklch */ color: oklch(45.8% 0.089 105.3);
Tailwind
colors: {
  custom: {
    50: '#8f8857',
    500: '#5f5a12',
    950: '#000000',
  },
}
SCSS
$custom: #5f5a12;
$custom-light: #8f8857;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5a12",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 56.104,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45849,
    "c": 0.08912,
    "h": 105.3
  },
  "luminance": 0.09789
}

Semantic roles & 50–950 ramp

primary
#5F5A12
secondary
#363C97
accent
#48EB3D
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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