#5A6315#5A6315

#5A6315 is a mid, moderate yellow. Relative luminance 0.112; OKLCH L 47.6% C 0.099 H 116.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5A6315
RGBrgb(90, 99, 21)
HSLhsl(67, 65%, 24%)
HSVhsv(67, 79%, 39%)
CMYKcmyk(9.1%, 0%, 78.8%, 61.2%)
CIE-LABlab(39.83, -14.35, 40.21)
CIE-LCHlch(39.83, 42.69, 109.64°)
OKLaboklab(47.64% -0.0435 0.0888)
OKLCHoklch(47.64% 0.099 116.1)
XYZxyz(8.8139, 11.1516, 2.3975)
Luminance0.1115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6315 #1E1563
analogous
#634515 #5A6315 #336315
triadic
#5A6315 #155A63 #63155A
tetradic
#5A6315 #156345 #1E1563 #631533
square
#5A6315 #156345 #1E1563 #631533
split-complementary
#5A6315 #153363 #451563
monochromatic
#171905 #2C310A #5A6315 #889520 #B6C82A

Accessibility & contrast

On white

6.50
#5A6315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5A6315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6315
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6315#FFFFFF#000000##FFFFFF
##5A63151.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D05
Deuteranopia (green-blind)
#6A5E1C
Tritanopia (blue-blind)
#605D54
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a6315;
/* rgb */ color: rgb(90, 99, 21);
/* oklch */ color: oklch(47.6% 0.099 116.1);
Tailwind
colors: {
  custom: {
    50: '#8b8f59',
    500: '#5a6315',
    950: '#000000',
  },
}
SCSS
$custom: #5a6315;
$custom-light: #8b8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6315",
  "rgb": {
    "r": 90,
    "g": 99,
    "b": 21
  },
  "hsl": {
    "h": 66.923,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.47642,
    "c": 0.09882,
    "h": 116.1
  },
  "luminance": 0.11151
}

Semantic roles & 50–950 ramp

primary
#5A6315
secondary
#453A9A
accent
#40E853
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6315

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

Preview Lab → · Contrast checker → · Palette generator →

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