#5A6810#5A6810

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

Color values

HEX#5A6810
RGBrgb(90, 104, 16)
HSLhsl(70, 73%, 24%)
HSVhsv(70, 85%, 41%)
CMYKcmyk(13.5%, 0%, 84.6%, 59.2%)
CIE-LABlab(41.39, -17.31, 43.35)
CIE-LCHlch(41.39, 46.68, 111.77°)
OKLaboklab(48.89% -0.052 0.0945)
OKLCHoklch(48.89% 0.108 118.9)
XYZxyz(9.2605, 12.1118, 2.3401)
Luminance0.1211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6810 #1E1068
analogous
#684A10 #5A6810 #2E6810
triadic
#5A6810 #105A68 #68105A
tetradic
#5A6810 #10684A #1E1068 #68102E
square
#5A6810 #10684A #1E1068 #68102E
split-complementary
#5A6810 #102E68 #4A1068
monochromatic
#171B04 #2C3308 #5A6810 #889D18 #B6D220

Accessibility & contrast

On white

6.14
#5A6810 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A6810
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6810#FFFFFF#000000##FFFFFF
##5A68101.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a6810;
/* rgb */ color: rgb(90, 104, 16);
/* oklch */ color: oklch(48.9% 0.108 118.9);
Tailwind
colors: {
  custom: {
    50: '#8c9358',
    500: '#5a6810',
    950: '#000000',
  },
}
SCSS
$custom: #5a6810;
$custom-light: #8c9358;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6810",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 16
  },
  "hsl": {
    "h": 69.545,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.48887,
    "c": 0.10784,
    "h": 118.9
  },
  "luminance": 0.12112
}

Semantic roles & 50–950 ramp

primary
#5A6810
secondary
#4534A0
accent
#38F055
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6810

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

Preview Lab → · Contrast checker → · Palette generator →

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