#5A6811#5A6811

#5A6811 is a mid, moderate yellow. Relative luminance 0.121; OKLCH L 48.9% C 0.107 H 118.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5A6811
RGBrgb(90, 104, 17)
HSLhsl(70, 72%, 24%)
HSVhsv(70, 84%, 41%)
CMYKcmyk(13.5%, 0%, 83.7%, 59.2%)
CIE-LABlab(41.40, -17.27, 43.04)
CIE-LCHlch(41.40, 46.37, 111.86°)
OKLaboklab(48.89% -0.0519 0.094)
OKLCHoklch(48.89% 0.107 118.9)
XYZxyz(9.2682, 12.1148, 2.3803)
Luminance0.1211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6811 #1F1168
analogous
#684A11 #5A6811 #2E6811
triadic
#5A6811 #115A68 #68115A
tetradic
#5A6811 #11684A #1F1168 #68112E
square
#5A6811 #11684A #1F1168 #68112E
split-complementary
#5A6811 #112E68 #4A1168
monochromatic
#171A04 #2C3308 #5A6811 #889D1A #B5D122

Accessibility & contrast

On white

6.13
#5A6811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A6811 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6811
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6811#FFFFFF#000000##FFFFFF
##5A68111.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6200
Deuteranopia (green-blind)
#6E621A
Tritanopia (blue-blind)
#606258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6811;
/* rgb */ color: rgb(90, 104, 17);
/* oklch */ color: oklch(48.9% 0.107 118.9);
Tailwind
colors: {
  custom: {
    50: '#8c9358',
    500: '#5a6811',
    950: '#000000',
  },
}
SCSS
$custom: #5a6811;
$custom-light: #8c9358;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6811",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 69.655,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.48892,
    "c": 0.10734,
    "h": 118.9
  },
  "luminance": 0.12115
}

Semantic roles & 50–950 ramp

primary
#5A6811
secondary
#4635A0
accent
#39EF56
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6811

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

Preview Lab → · Contrast checker → · Palette generator →

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