#5A6211#5A6211

#5A6211 is a mid, moderate yellow. Relative luminance 0.109; OKLCH L 47.4% C 0.100 H 115.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5A6211
RGBrgb(90, 98, 17)
HSLhsl(66, 70%, 23%)
HSVhsv(66, 83%, 38%)
CMYKcmyk(8.2%, 0%, 82.7%, 61.6%)
CIE-LABlab(39.50, -13.99, 41.32)
CIE-LCHlch(39.50, 43.63, 108.71°)
OKLaboklab(47.36% -0.0428 0.0903)
OKLCHoklch(47.36% 0.1 115.4)
XYZxyz(8.6856, 10.9496, 2.1862)
Luminance0.1095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6211 #191162
analogous
#624211 #5A6211 #316211
triadic
#5A6211 #115A62 #62115A
tetradic
#5A6211 #116242 #191162 #621131
square
#5A6211 #116242 #191162 #621131
split-complementary
#5A6211 #113162 #421162
monochromatic
#181A05 #2A2E08 #5A6211 #8A961A #BACA23

Accessibility & contrast

On white

6.58
#5A6211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A6211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6211
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6211#FFFFFF#000000##FFFFFF
##5A62111.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#695E19
Tritanopia (blue-blind)
#605C53
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a6211;
/* rgb */ color: rgb(90, 98, 17);
/* oklch */ color: oklch(47.4% 0.100 115.4);
Tailwind
colors: {
  custom: {
    50: '#8b8e57',
    500: '#5a6211',
    950: '#000000',
  },
}
SCSS
$custom: #5a6211;
$custom-light: #8b8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6211",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 17
  },
  "hsl": {
    "h": 65.926,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.47362,
    "c": 0.09998,
    "h": 115.4
  },
  "luminance": 0.10949
}

Semantic roles & 50–950 ramp

primary
#5A6211
secondary
#3E349A
accent
#3BED4C
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A6211

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

Preview Lab → · Contrast checker → · Palette generator →

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