#5A6512#5A6512

#5A6512 is a mid, moderate yellow. Relative luminance 0.115; OKLCH L 48.1% C 0.103 H 117.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5A6512
RGBrgb(90, 101, 18)
HSLhsl(68, 70%, 23%)
HSVhsv(68, 82%, 40%)
CMYKcmyk(10.9%, 0%, 82.2%, 60.4%)
CIE-LABlab(40.45, -15.60, 41.85)
CIE-LCHlch(40.45, 44.67, 110.44°)
OKLaboklab(48.13% -0.0472 0.0917)
OKLCHoklch(48.13% 0.103 117.2)
XYZxyz(8.9795, 11.5248, 2.3236)
Luminance0.1153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6512 #1D1265
analogous
#654612 #5A6512 #306512
triadic
#5A6512 #125A65 #65125A
tetradic
#5A6512 #126546 #1D1265 #651230
square
#5A6512 #126546 #1D1265 #651230
split-complementary
#5A6512 #123065 #461265
monochromatic
#171A05 #2C3109 #5A6512 #88991B #B7CD25

Accessibility & contrast

On white

6.35
#5A6512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5A6512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6512
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6512#FFFFFF#000000##FFFFFF
##5A65121.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#6B601A
Tritanopia (blue-blind)
#605F56
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a6512;
/* rgb */ color: rgb(90, 101, 18);
/* oklch */ color: oklch(48.1% 0.103 117.2);
Tailwind
colors: {
  custom: {
    50: '#8b9058',
    500: '#5a6512',
    950: '#000000',
  },
}
SCSS
$custom: #5a6512;
$custom-light: #8b9058;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6512",
  "rgb": {
    "r": 90,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 67.952,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.48131,
    "c": 0.10308,
    "h": 117.2
  },
  "luminance": 0.11525
}

Semantic roles & 50–950 ramp

primary
#5A6512
secondary
#44369D
accent
#3BED53
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6512

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

Preview Lab → · Contrast checker → · Palette generator →

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