#5F5A11#5F5A11

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

Color values

HEX#5F5A11
RGBrgb(95, 90, 17)
HSLhsl(56, 70%, 22%)
HSVhsv(56, 82%, 37%)
CMYKcmyk(0%, 5.3%, 82.1%, 62.7%)
CIE-LABlab(37.46, -7.02, 39.64)
CIE-LCHlch(37.46, 40.25, 100.04°)
OKLaboklab(45.84% -0.0237 0.0865)
OKLCHoklch(45.84% 0.09 105.3)
XYZxyz(8.4770, 9.7860, 1.9726)
Luminance0.0979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5A11 #11165F
analogous
#5F3311 #5F5A11 #3D5F11
triadic
#5F5A11 #115F5A #5A115F
tetradic
#5F5A11 #115F33 #11165F #5F113D
square
#5F5A11 #115F33 #11165F #5F113D
split-complementary
#5F5A11 #113D5F #33115F
monochromatic
#1A1905 #2B2908 #5F5A11 #938B1A #C7BC24

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F5A11#FFFFFF#000000##FFFFFF
##5F5A111.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)
#635602
Deuteranopia (green-blind)
#645A17
Tritanopia (blue-blind)
#67534C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f5a11;
/* rgb */ color: rgb(95, 90, 17);
/* oklch */ color: oklch(45.8% 0.090 105.3);
Tailwind
colors: {
  custom: {
    50: '#8f8856',
    500: '#5f5a11',
    950: '#000000',
  },
}
SCSS
$custom: #5f5a11;
$custom-light: #8f8856;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5a11",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 56.154,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.45842,
    "c": 0.08972,
    "h": 105.3
  },
  "luminance": 0.09786
}

Semantic roles & 50–950 ramp

primary
#5F5A11
secondary
#343B98
accent
#47EC3B
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5A11

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

Preview Lab → · Contrast checker → · Palette generator →

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