#5A6015#5A6015

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

Color values

HEX#5A6015
RGBrgb(90, 96, 21)
HSLhsl(65, 64%, 23%)
HSVhsv(65, 78%, 38%)
CMYKcmyk(6.2%, 0%, 78.1%, 62.4%)
CIE-LABlab(38.89, -12.68, 39.31)
CIE-LCHlch(38.89, 41.31, 107.88°)
OKLaboklab(46.88% -0.0388 0.0869)
OKLCHoklch(46.88% 0.095 114.1)
XYZxyz(8.5349, 10.5937, 2.3045)
Luminance0.1059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6015 #1B1560
analogous
#604015 #5A6015 #346015
triadic
#5A6015 #155A60 #60155A
tetradic
#5A6015 #156040 #1B1560 #601534
square
#5A6015 #156040 #1B1560 #601534
split-complementary
#5A6015 #153460 #401560
monochromatic
#181905 #2B2E0A #5A6015 #899220 #B8C42B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6015#FFFFFF#000000##FFFFFF
##5A60151.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)
#685B06
Deuteranopia (green-blind)
#675C1B
Tritanopia (blue-blind)
#605A52
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a6015;
/* rgb */ color: rgb(90, 96, 21);
/* oklch */ color: oklch(46.9% 0.095 114.1);
Tailwind
colors: {
  custom: {
    50: '#8b8d59',
    500: '#5a6015',
    950: '#000000',
  },
}
SCSS
$custom: #5a6015;
$custom-light: #8b8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6015",
  "rgb": {
    "r": 90,
    "g": 96,
    "b": 21
  },
  "hsl": {
    "h": 64.8,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.46882,
    "c": 0.09514,
    "h": 114.1
  },
  "luminance": 0.10594
}

Semantic roles & 50–950 ramp

primary
#5A6015
secondary
#413A97
accent
#41E74E
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6015

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

Preview Lab → · Contrast checker → · Palette generator →

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