#5F5A16#5F5A16

#5F5A16 is a mid, moderate yellow. Relative luminance 0.098; OKLCH L 45.9% C 0.086 H 105.1°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5F5A16
RGBrgb(95, 90, 22)
HSLhsl(56, 62%, 23%)
HSVhsv(56, 77%, 37%)
CMYKcmyk(0%, 5.3%, 76.8%, 62.7%)
CIE-LABlab(37.49, -6.77, 37.73)
CIE-LCHlch(37.49, 38.33, 100.18°)
OKLaboklab(45.88% -0.0225 0.0835)
OKLCHoklch(45.88% 0.086 105.1)
XYZxyz(8.5206, 9.8035, 2.2023)
Luminance0.0980 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5A16 #161B5F
analogous
#5F3516 #5F5A16 #3F5F16
triadic
#5F5A16 #165F5A #5A165F
tetradic
#5F5A16 #165F35 #161B5F #5F163F
square
#5F5A16 #165F35 #161B5F #5F163F
split-complementary
#5F5A16 #163F5F #35165F
monochromatic
#191806 #2D2B0A #5F5A16 #918922 #C2B82D

Accessibility & contrast

On white

7.09
#5F5A16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F5A16
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5A16#FFFFFF#000000##FFFFFF
##5F5A161.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62570A
Deuteranopia (green-blind)
#645A1B
Tritanopia (blue-blind)
#67534D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f5a16;
/* rgb */ color: rgb(95, 90, 22);
/* oklch */ color: oklch(45.9% 0.086 105.1);
Tailwind
colors: {
  custom: {
    50: '#8f8859',
    500: '#5f5a16',
    950: '#000000',
  },
}
SCSS
$custom: #5f5a16;
$custom-light: #8f8859;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5a16",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 22
  },
  "hsl": {
    "h": 55.89,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.45878,
    "c": 0.08649,
    "h": 105.1
  },
  "luminance": 0.09803
}

Semantic roles & 50–950 ramp

primary
#5F5A16
secondary
#3B4196
accent
#4EE542
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F5A16

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

Preview Lab → · Contrast checker → · Palette generator →

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