#5A6014#5A6014

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

Color values

HEX#5A6014
RGBrgb(90, 96, 20)
HSLhsl(65, 66%, 23%)
HSVhsv(65, 79%, 38%)
CMYKcmyk(6.2%, 0%, 79.2%, 62.4%)
CIE-LABlab(38.88, -12.74, 39.69)
CIE-LCHlch(38.88, 41.68, 107.79°)
OKLaboklab(46.88% -0.0391 0.0875)
OKLCHoklch(46.88% 0.096 114.1)
XYZxyz(8.5258, 10.5901, 2.2566)
Luminance0.1059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6014 #1A1460
analogous
#604014 #5A6014 #346014
triadic
#5A6014 #145A60 #60145A
tetradic
#5A6014 #146040 #1A1460 #601434
square
#5A6014 #146040 #1A1460 #601434
split-complementary
#5A6014 #143460 #401460
monochromatic
#181905 #2B2D09 #5A6014 #89931F #B9C529

Accessibility & contrast

On white

6.74
#5A6014 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A6014
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6014#FFFFFF#000000##FFFFFF
##5A60141.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B04
Deuteranopia (green-blind)
#675C1A
Tritanopia (blue-blind)
#605A52
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a6014;
/* rgb */ color: rgb(90, 96, 20);
/* oklch */ color: oklch(46.9% 0.096 114.1);
Tailwind
colors: {
  custom: {
    50: '#8b8d58',
    500: '#5a6014',
    950: '#000000',
  },
}
SCSS
$custom: #5a6014;
$custom-light: #8b8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6014",
  "rgb": {
    "r": 90,
    "g": 96,
    "b": 20
  },
  "hsl": {
    "h": 64.737,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.46875,
    "c": 0.09579,
    "h": 114.1
  },
  "luminance": 0.1059
}

Semantic roles & 50–950 ramp

primary
#5A6014
secondary
#403898
accent
#3FE84D
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6014

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

Preview Lab → · Contrast checker → · Palette generator →

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