#5F5A10#5F5A10

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

Color values

HEX#5F5A10
RGBrgb(95, 90, 16)
HSLhsl(56, 71%, 22%)
HSVhsv(56, 83%, 37%)
CMYKcmyk(0%, 5.3%, 83.2%, 62.7%)
CIE-LABlab(37.45, -7.06, 39.99)
CIE-LCHlch(37.45, 40.61, 100.01°)
OKLaboklab(45.84% -0.0239 0.0871)
OKLCHoklch(45.84% 0.09 105.4)
XYZxyz(8.4694, 9.7830, 1.9323)
Luminance0.0978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5A10 #10155F
analogous
#5F3310 #5F5A10 #3D5F10
triadic
#5F5A10 #105F5A #5A105F
tetradic
#5F5A10 #105F33 #10155F #5F103D
square
#5F5A10 #105F33 #10155F #5F103D
split-complementary
#5F5A10 #103D5F #33105F
monochromatic
#1A1904 #2B2807 #5F5A10 #938C19 #C8BD22

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F5A10#FFFFFF#000000##FFFFFF
##5F5A101.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)
#635600
Deuteranopia (green-blind)
#655916
Tritanopia (blue-blind)
#67534C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f5a10;
/* rgb */ color: rgb(95, 90, 16);
/* oklch */ color: oklch(45.8% 0.090 105.4);
Tailwind
colors: {
  custom: {
    50: '#8f8856',
    500: '#5f5a10',
    950: '#000000',
  },
}
SCSS
$custom: #5f5a10;
$custom-light: #8f8856;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5a10",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 16
  },
  "hsl": {
    "h": 56.203,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.45836,
    "c": 0.09028,
    "h": 105.4
  },
  "luminance": 0.09783
}

Semantic roles & 50–950 ramp

primary
#5F5A10
secondary
#333998
accent
#45EE3A
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5A10

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

Preview Lab → · Contrast checker → · Palette generator →

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