#5A6610#5A6610

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

Color values

HEX#5A6610
RGBrgb(90, 102, 16)
HSLhsl(68, 73%, 23%)
HSVhsv(68, 84%, 40%)
CMYKcmyk(11.8%, 0%, 84.3%, 60%)
CIE-LABlab(40.76, -16.23, 42.78)
CIE-LCHlch(40.76, 45.76, 110.77°)
OKLaboklab(48.38% -0.0491 0.0932)
OKLCHoklch(48.38% 0.105 117.8)
XYZxyz(9.0616, 11.7139, 2.2738)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6610 #1C1066
analogous
#664710 #5A6610 #2F6610
triadic
#5A6610 #105A66 #66105A
tetradic
#5A6610 #106647 #1C1066 #66102F
square
#5A6610 #106647 #1C1066 #66102F
split-complementary
#5A6610 #102F66 #471066
monochromatic
#171A04 #2B3108 #5A6610 #899B18 #B7D021

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6610#FFFFFF#000000##FFFFFF
##5A66101.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)
#6C6019
Tritanopia (blue-blind)
#606056
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a6610;
/* rgb */ color: rgb(90, 102, 16);
/* oklch */ color: oklch(48.4% 0.105 117.8);
Tailwind
colors: {
  custom: {
    50: '#8c9157',
    500: '#5a6610',
    950: '#000000',
  },
}
SCSS
$custom: #5a6610;
$custom-light: #8c9157;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6610",
  "rgb": {
    "r": 90,
    "g": 102,
    "b": 16
  },
  "hsl": {
    "h": 68.372,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.48375,
    "c": 0.10537,
    "h": 117.8
  },
  "luminance": 0.11714
}

Semantic roles & 50–950 ramp

primary
#5A6610
secondary
#42339E
accent
#38F052
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6610

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

Preview Lab → · Contrast checker → · Palette generator →

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