#5A6012#5A6012

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

Color values

HEX#5A6012
RGBrgb(90, 96, 18)
HSLhsl(65, 68%, 22%)
HSVhsv(65, 81%, 38%)
CMYKcmyk(6.2%, 0%, 81.3%, 62.4%)
CIE-LABlab(38.87, -12.83, 40.41)
CIE-LCHlch(38.87, 42.39, 107.62°)
OKLaboklab(46.86% -0.0395 0.0886)
OKLCHoklch(46.86% 0.097 114.1)
XYZxyz(8.5088, 10.5832, 2.1667)
Luminance0.1058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6012 #181260
analogous
#603F12 #5A6012 #336012
triadic
#5A6012 #125A60 #60125A
tetradic
#5A6012 #12603F #181260 #601233
square
#5A6012 #12603F #181260 #601233
split-complementary
#5A6012 #123360 #3F1260
monochromatic
#181A05 #2A2C08 #5A6012 #8A941C #BBC725

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6012#FFFFFF#000000##FFFFFF
##5A60121.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)
#685B01
Deuteranopia (green-blind)
#675C19
Tritanopia (blue-blind)
#615A51
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a6012;
/* rgb */ color: rgb(90, 96, 18);
/* oklch */ color: oklch(46.9% 0.097 114.1);
Tailwind
colors: {
  custom: {
    50: '#8b8d57',
    500: '#5a6012',
    950: '#000000',
  },
}
SCSS
$custom: #5a6012;
$custom-light: #8b8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6012",
  "rgb": {
    "r": 90,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 64.615,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.46862,
    "c": 0.09701,
    "h": 114.1
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

primary
#5A6012
secondary
#3D3698
accent
#3DEB4A
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A6012

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

Preview Lab → · Contrast checker → · Palette generator →

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