#5A6717#5A6717

#5A6717 is a mid, moderate yellow. Relative luminance 0.119; OKLCH L 48.7% C 0.103 H 118.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5A6717
RGBrgb(90, 103, 23)
HSLhsl(70, 63%, 25%)
HSVhsv(70, 78%, 40%)
CMYKcmyk(12.6%, 0%, 77.7%, 59.6%)
CIE-LABlab(41.11, -16.43, 40.67)
CIE-LCHlch(41.11, 43.86, 112.00°)
OKLaboklab(48.68% -0.049 0.0901)
OKLCHoklch(48.68% 0.103 118.6)
XYZxyz(9.2216, 11.9361, 2.6285)
Luminance0.1194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6717 #241767
analogous
#674C17 #5A6717 #326717
triadic
#5A6717 #175A67 #67175A
tetradic
#5A6717 #17674C #241767 #671732
square
#5A6717 #17674C #241767 #671732
split-complementary
#5A6717 #173267 #4C1767
monochromatic
#161906 #2E350C #5A6717 #869922 #B1CB2D

Accessibility & contrast

On white

6.20
#5A6717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5A6717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6717
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6717#FFFFFF#000000##FFFFFF
##5A67171.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6107
Deuteranopia (green-blind)
#6D611E
Tritanopia (blue-blind)
#606158
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6717;
/* rgb */ color: rgb(90, 103, 23);
/* oklch */ color: oklch(48.7% 0.103 118.6);
Tailwind
colors: {
  custom: {
    50: '#8b925b',
    500: '#5a6717',
    950: '#000000',
  },
}
SCSS
$custom: #5a6717;
$custom-light: #8b925b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6717",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 69.75,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.48675,
    "c": 0.10258,
    "h": 118.6
  },
  "luminance": 0.11936
}

Semantic roles & 50–950 ramp

primary
#5A6717
secondary
#4C3D9D
accent
#41E75C
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D04
muted
#7D7D79

Preview Lab

Preview with #5A6717

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

Preview Lab → · Contrast checker → · Palette generator →

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