#5A6016#5A6016

#5A6016 is a mid, moderate yellow. Relative luminance 0.106; OKLCH L 46.9% C 0.094 H 114.1°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5A6016
RGBrgb(90, 96, 22)
HSLhsl(65, 63%, 23%)
HSVhsv(65, 77%, 38%)
CMYKcmyk(6.2%, 0%, 77.1%, 62.4%)
CIE-LABlab(38.89, -12.63, 38.93)
CIE-LCHlch(38.89, 40.92, 107.97°)
OKLaboklab(46.89% -0.0386 0.0862)
OKLCHoklch(46.89% 0.094 114.1)
XYZxyz(8.5444, 10.5975, 2.3543)
Luminance0.1060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6016 #1C1660
analogous
#604116 #5A6016 #356016
triadic
#5A6016 #165A60 #60165A
tetradic
#5A6016 #166041 #1C1660 #601635
square
#5A6016 #166041 #1C1660 #601635
split-complementary
#5A6016 #163560 #411660
monochromatic
#171906 #2B2E0B #5A6016 #899221 #B7C42D

Accessibility & contrast

On white

6.73
#5A6016 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5A6016 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6016
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6016#FFFFFF#000000##FFFFFF
##5A60161.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B08
Deuteranopia (green-blind)
#675C1C
Tritanopia (blue-blind)
#605A52
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a6016;
/* rgb */ color: rgb(90, 96, 22);
/* oklch */ color: oklch(46.9% 0.094 114.1);
Tailwind
colors: {
  custom: {
    50: '#8b8d59',
    500: '#5a6016',
    950: '#000000',
  },
}
SCSS
$custom: #5a6016;
$custom-light: #8b8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6016",
  "rgb": {
    "r": 90,
    "g": 96,
    "b": 22
  },
  "hsl": {
    "h": 64.865,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.46889,
    "c": 0.09448,
    "h": 114.1
  },
  "luminance": 0.10597
}

Semantic roles & 50–950 ramp

primary
#5A6016
secondary
#423B97
accent
#42E64F
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6016

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

Preview Lab → · Contrast checker → · Palette generator →

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