#5A6712#5A6712

#5A6712 is a mid, moderate yellow. Relative luminance 0.119; OKLCH L 48.6% C 0.106 H 118.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5A6712
RGBrgb(90, 103, 18)
HSLhsl(69, 70%, 24%)
HSVhsv(69, 83%, 40%)
CMYKcmyk(12.6%, 0%, 82.5%, 59.6%)
CIE-LABlab(41.09, -16.68, 42.43)
CIE-LCHlch(41.09, 45.59, 111.46°)
OKLaboklab(48.64% -0.0502 0.0929)
OKLCHoklch(48.64% 0.106 118.4)
XYZxyz(9.1761, 11.9179, 2.3891)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6712 #1F1267
analogous
#674912 #5A6712 #2F6712
triadic
#5A6712 #125A67 #67125A
tetradic
#5A6712 #126749 #1F1267 #67122F
square
#5A6712 #126749 #1F1267 #67122F
split-complementary
#5A6712 #122F67 #491267
monochromatic
#171A05 #2C3309 #5A6712 #889B1B #B5CF24

Accessibility & contrast

On white

6.21
#5A6712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5A6712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6712
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6712#FFFFFF#000000##FFFFFF
##5A67121.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6100
Deuteranopia (green-blind)
#6D611A
Tritanopia (blue-blind)
#606157
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6712;
/* rgb */ color: rgb(90, 103, 18);
/* oklch */ color: oklch(48.6% 0.106 118.4);
Tailwind
colors: {
  custom: {
    50: '#8c9258',
    500: '#5a6712',
    950: '#000000',
  },
}
SCSS
$custom: #5a6712;
$custom-light: #8c9258;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6712",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 69.176,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.48642,
    "c": 0.10556,
    "h": 118.4
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#5A6712
secondary
#46369F
accent
#3BED56
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D04
muted
#7D7D79

Preview Lab

Preview with #5A6712

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

Preview Lab → · Contrast checker → · Palette generator →

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