#5A6718#5A6718

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

Color values

HEX#5A6718
RGBrgb(90, 103, 24)
HSLhsl(70, 62%, 25%)
HSVhsv(70, 77%, 40%)
CMYKcmyk(12.6%, 0%, 76.7%, 59.6%)
CIE-LABlab(41.12, -16.37, 40.29)
CIE-LCHlch(41.12, 43.49, 112.12°)
OKLaboklab(48.68% -0.0488 0.0895)
OKLCHoklch(48.68% 0.102 118.6)
XYZxyz(9.2318, 11.9402, 2.6823)
Luminance0.1194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6718 #251867
analogous
#674C18 #5A6718 #336718
triadic
#5A6718 #185A67 #67185A
tetradic
#5A6718 #18674C #251867 #671833
square
#5A6718 #18674C #251867 #671833
split-complementary
#5A6718 #183367 #4C1867
monochromatic
#161906 #2F350C #5A6718 #859924 #B1CA2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6718#FFFFFF#000000##FFFFFF
##5A67181.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)
#6E6109
Deuteranopia (green-blind)
#6D611F
Tritanopia (blue-blind)
#606158
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6718;
/* rgb */ color: rgb(90, 103, 24);
/* oklch */ color: oklch(48.7% 0.102 118.6);
Tailwind
colors: {
  custom: {
    50: '#8b925b',
    500: '#5a6718',
    950: '#000000',
  },
}
SCSS
$custom: #5a6718;
$custom-light: #8b925b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6718",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 24
  },
  "hsl": {
    "h": 69.873,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.48682,
    "c": 0.10192,
    "h": 118.6
  },
  "luminance": 0.1194
}

Semantic roles & 50–950 ramp

primary
#5A6718
secondary
#4D3E9D
accent
#43E55D
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D04
muted
#7D7D79

Preview Lab

Preview with #5A6718

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

Preview Lab → · Contrast checker → · Palette generator →

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