#5A6511#5A6511

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

Color values

HEX#5A6511
RGBrgb(90, 101, 17)
HSLhsl(68, 71%, 23%)
HSVhsv(68, 83%, 40%)
CMYKcmyk(10.9%, 0%, 83.2%, 60.4%)
CIE-LABlab(40.45, -15.64, 42.18)
CIE-LCHlch(40.45, 44.99, 110.35°)
OKLaboklab(48.13% -0.0474 0.0922)
OKLCHoklch(48.13% 0.104 117.2)
XYZxyz(8.9715, 11.5216, 2.2815)
Luminance0.1152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6511 #1C1165
analogous
#654611 #5A6511 #306511
triadic
#5A6511 #115A65 #65115A
tetradic
#5A6511 #116546 #1C1165 #651130
square
#5A6511 #116546 #1C1165 #651130
split-complementary
#5A6511 #113065 #461165
monochromatic
#171A04 #2B3108 #5A6511 #89991A #B7CE23

Accessibility & contrast

On white

6.36
#5A6511 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5A6511 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6511
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6511#FFFFFF#000000##FFFFFF
##5A65111.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a6511;
/* rgb */ color: rgb(90, 101, 17);
/* oklch */ color: oklch(48.1% 0.104 117.2);
Tailwind
colors: {
  custom: {
    50: '#8c9058',
    500: '#5a6511',
    950: '#000000',
  },
}
SCSS
$custom: #5a6511;
$custom-light: #8c9058;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6511",
  "rgb": {
    "r": 90,
    "g": 101,
    "b": 17
  },
  "hsl": {
    "h": 67.857,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.48126,
    "c": 0.10362,
    "h": 117.2
  },
  "luminance": 0.11521
}

Semantic roles & 50–950 ramp

primary
#5A6511
secondary
#42359D
accent
#3AEE51
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6511

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

Preview Lab → · Contrast checker → · Palette generator →

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