#5A6210#5A6210

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

Color values

HEX#5A6210
RGBrgb(90, 98, 16)
HSLhsl(66, 72%, 22%)
HSVhsv(66, 84%, 38%)
CMYKcmyk(8.2%, 0%, 83.7%, 61.6%)
CIE-LABlab(39.49, -14.04, 41.65)
CIE-LCHlch(39.49, 43.95, 108.63°)
OKLaboklab(47.36% -0.043 0.0908)
OKLCHoklch(47.36% 0.101 115.4)
XYZxyz(8.6779, 10.9466, 2.1459)
Luminance0.1095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6210 #181062
analogous
#624110 #5A6210 #316210
triadic
#5A6210 #105A62 #62105A
tetradic
#5A6210 #106241 #181062 #621031
square
#5A6210 #106241 #181062 #621031
split-complementary
#5A6210 #103162 #411062
monochromatic
#181A04 #2A2D07 #5A6210 #8A9719 #BBCB21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6210#FFFFFF#000000##FFFFFF
##5A62101.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)
#695E18
Tritanopia (blue-blind)
#605C53
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a6210;
/* rgb */ color: rgb(90, 98, 16);
/* oklch */ color: oklch(47.4% 0.101 115.4);
Tailwind
colors: {
  custom: {
    50: '#8c8e57',
    500: '#5a6210',
    950: '#000000',
  },
}
SCSS
$custom: #5a6210;
$custom-light: #8c8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6210",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 16
  },
  "hsl": {
    "h": 65.854,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.47357,
    "c": 0.10052,
    "h": 115.4
  },
  "luminance": 0.10946
}

Semantic roles & 50–950 ramp

primary
#5A6210
secondary
#3D339B
accent
#39EF4B
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A6210

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

Preview Lab → · Contrast checker → · Palette generator →

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