#5A6017#5A6017

#5A6017 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#5A6017
RGBrgb(90, 96, 23)
HSLhsl(65, 61%, 23%)
HSVhsv(65, 76%, 38%)
CMYKcmyk(6.2%, 0%, 76%, 62.4%)
CIE-LABlab(38.90, -12.57, 38.53)
CIE-LCHlch(38.90, 40.53, 108.07°)
OKLaboklab(46.9% -0.0383 0.0856)
OKLCHoklch(46.9% 0.094 114.1)
XYZxyz(8.5542, 10.6014, 2.4061)
Luminance0.1060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6017 #1D1760
analogous
#604117 #5A6017 #356017
triadic
#5A6017 #175A60 #60175A
tetradic
#5A6017 #176041 #1D1760 #601735
square
#5A6017 #176041 #1D1760 #601735
split-complementary
#5A6017 #173560 #411760
monochromatic
#171906 #2C2F0B #5A6017 #889123 #B7C32F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6017#FFFFFF#000000##FFFFFF
##5A60171.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)
#675B0A
Deuteranopia (green-blind)
#675C1D
Tritanopia (blue-blind)
#605A52
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a6017;
/* rgb */ color: rgb(90, 96, 23);
/* oklch */ color: oklch(46.9% 0.094 114.1);
Tailwind
colors: {
  custom: {
    50: '#8b8d5a',
    500: '#5a6017',
    950: '#000000',
  },
}
SCSS
$custom: #5a6017;
$custom-light: #8b8d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6017",
  "rgb": {
    "r": 90,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 64.932,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.46897,
    "c": 0.09379,
    "h": 114.1
  },
  "luminance": 0.10601
}

Semantic roles & 50–950 ramp

primary
#5A6017
secondary
#443C97
accent
#43E451
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6017

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

Preview Lab → · Contrast checker → · Palette generator →

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