#5A6313#5A6313

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

Color values

HEX#5A6313
RGBrgb(90, 99, 19)
HSLhsl(67, 68%, 23%)
HSVhsv(67, 81%, 39%)
CMYKcmyk(9.1%, 0%, 80.8%, 61.2%)
CIE-LABlab(39.82, -14.45, 40.93)
CIE-LCHlch(39.82, 43.41, 109.45°)
OKLaboklab(47.63% -0.0439 0.0899)
OKLCHoklch(47.63% 0.1 116.1)
XYZxyz(8.7961, 11.1445, 2.3037)
Luminance0.1114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6313 #1C1363
analogous
#634413 #5A6313 #326313
triadic
#5A6313 #135A63 #63135A
tetradic
#5A6313 #136344 #1C1363 #631332
square
#5A6313 #136344 #1C1363 #631332
split-complementary
#5A6313 #133263 #441363
monochromatic
#171A05 #2B3009 #5A6313 #89961D #B7CA27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6313#FFFFFF#000000##FFFFFF
##5A63131.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)
#6A5D01
Deuteranopia (green-blind)
#6A5E1A
Tritanopia (blue-blind)
#605D54
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a6313;
/* rgb */ color: rgb(90, 99, 19);
/* oklch */ color: oklch(47.6% 0.100 116.1);
Tailwind
colors: {
  custom: {
    50: '#8b8f58',
    500: '#5a6313',
    950: '#000000',
  },
}
SCSS
$custom: #5a6313;
$custom-light: #8b8f58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6313",
  "rgb": {
    "r": 90,
    "g": 99,
    "b": 19
  },
  "hsl": {
    "h": 66.75,
    "s": 67.797,
    "l": 23.137
  },
  "oklch": {
    "l": 0.47629,
    "c": 0.10005,
    "h": 116.1
  },
  "luminance": 0.11144
}

Semantic roles & 50–950 ramp

primary
#5A6313
secondary
#42379B
accent
#3DEB51
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6313

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

Preview Lab → · Contrast checker → · Palette generator →

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