#5A6612#5A6612

#5A6612 is a mid, moderate yellow. Relative luminance 0.117; OKLCH L 48.4% C 0.104 H 117.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5A6612
RGBrgb(90, 102, 18)
HSLhsl(69, 70%, 24%)
HSVhsv(69, 82%, 40%)
CMYKcmyk(11.8%, 0%, 82.4%, 60%)
CIE-LABlab(40.77, -16.14, 42.14)
CIE-LCHlch(40.77, 45.13, 110.96°)
OKLaboklab(48.39% -0.0487 0.0923)
OKLCHoklch(48.39% 0.104 117.8)
XYZxyz(9.0772, 11.7202, 2.3562)
Luminance0.1172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6612 #1E1266
analogous
#664812 #5A6612 #306612
triadic
#5A6612 #125A66 #66125A
tetradic
#5A6612 #126648 #1E1266 #661230
square
#5A6612 #126648 #1E1266 #661230
split-complementary
#5A6612 #123066 #481266
monochromatic
#171A05 #2C3209 #5A6612 #889A1B #B6CE24

Accessibility & contrast

On white

6.28
#5A6612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5A6612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6612
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6612#FFFFFF#000000##FFFFFF
##5A66121.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6000
Deuteranopia (green-blind)
#6C611A
Tritanopia (blue-blind)
#606057
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a6612;
/* rgb */ color: rgb(90, 102, 18);
/* oklch */ color: oklch(48.4% 0.104 117.8);
Tailwind
colors: {
  custom: {
    50: '#8c9158',
    500: '#5a6612',
    950: '#000000',
  },
}
SCSS
$custom: #5a6612;
$custom-light: #8c9158;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6612",
  "rgb": {
    "r": 90,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 68.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.48387,
    "c": 0.10432,
    "h": 117.8
  },
  "luminance": 0.1172
}

Semantic roles & 50–950 ramp

primary
#5A6612
secondary
#45369E
accent
#3BED54
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6612

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

Preview Lab → · Contrast checker → · Palette generator →

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