#5A6716#5A6716

#5A6716 is a mid, moderate yellow. Relative luminance 0.119; OKLCH L 48.7% C 0.103 H 118.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5A6716
RGBrgb(90, 103, 22)
HSLhsl(70, 65%, 25%)
HSVhsv(70, 79%, 40%)
CMYKcmyk(12.6%, 0%, 78.6%, 59.6%)
CIE-LABlab(41.11, -16.49, 41.04)
CIE-LCHlch(41.11, 44.23, 111.89°)
OKLaboklab(48.67% -0.0493 0.0907)
OKLCHoklch(48.67% 0.103 118.5)
XYZxyz(9.2117, 11.9322, 2.5768)
Luminance0.1193 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6716 #231667
analogous
#674C16 #5A6716 #316716
triadic
#5A6716 #165A67 #67165A
tetradic
#5A6716 #16674C #231667 #671631
square
#5A6716 #16674C #231667 #671631
split-complementary
#5A6716 #163167 #4C1667
monochromatic
#161905 #2E350B #5A6716 #869921 #B2CC2C

Accessibility & contrast

On white

6.20
#5A6716 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5A6716 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6716
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6716#FFFFFF#000000##FFFFFF
##5A67161.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6105
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#606158
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6716;
/* rgb */ color: rgb(90, 103, 22);
/* oklch */ color: oklch(48.7% 0.103 118.5);
Tailwind
colors: {
  custom: {
    50: '#8b925a',
    500: '#5a6716',
    950: '#000000',
  },
}
SCSS
$custom: #5a6716;
$custom-light: #8b925a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6716",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 22
  },
  "hsl": {
    "h": 69.63,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.48668,
    "c": 0.10322,
    "h": 118.5
  },
  "luminance": 0.11932
}

Semantic roles & 50–950 ramp

primary
#5A6716
secondary
#4B3B9E
accent
#40E85B
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D04
muted
#7D7D79

Preview Lab

Preview with #5A6716

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

Preview Lab → · Contrast checker → · Palette generator →

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