#5A5F10#5A5F10

#5A5F10 is a mid, moderate yellow. Relative luminance 0.104; OKLCH L 46.6% C 0.097 H 113.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5A5F10
RGBrgb(90, 95, 16)
HSLhsl(64, 71%, 22%)
HSVhsv(64, 83%, 37%)
CMYKcmyk(5.3%, 0%, 83.2%, 62.7%)
CIE-LABlab(38.54, -12.36, 40.80)
CIE-LCHlch(38.54, 42.63, 106.86°)
OKLaboklab(46.6% -0.0384 0.089)
OKLCHoklch(46.6% 0.097 113.4)
XYZxyz(8.4025, 10.3957, 2.0541)
Luminance0.1040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F10 #15105F
analogous
#5F3D10 #5A5F10 #335F10
triadic
#5A5F10 #105A5F #5F105A
tetradic
#5A5F10 #105F3D #15105F #5F1033
square
#5A5F10 #105F3D #15105F #5F1033
split-complementary
#5A5F10 #10335F #3D105F
monochromatic
#191A04 #282B07 #5A5F10 #8C9319 #BDC822

Accessibility & contrast

On white

6.82
#5A5F10 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A5F10 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5F10
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5F10#FFFFFF#000000##FFFFFF
##5A5F101.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A00
Deuteranopia (green-blind)
#675C17
Tritanopia (blue-blind)
#615950
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a5f10;
/* rgb */ color: rgb(90, 95, 16);
/* oklch */ color: oklch(46.6% 0.097 113.4);
Tailwind
colors: {
  custom: {
    50: '#8b8c56',
    500: '#5a5f10',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f10;
$custom-light: #8b8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f10",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 16
  },
  "hsl": {
    "h": 63.797,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.46597,
    "c": 0.09695,
    "h": 113.4
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#5A5F10
secondary
#393398
accent
#3AEE45
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5F10

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

Preview Lab → · Contrast checker → · Palette generator →

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