#5A6112#5A6112

#5A6112 is a mid, moderate yellow. Relative luminance 0.108; OKLCH L 47.1% C 0.098 H 114.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5A6112
RGBrgb(90, 97, 18)
HSLhsl(65, 69%, 23%)
HSVhsv(65, 81%, 38%)
CMYKcmyk(7.2%, 0%, 81.4%, 62%)
CIE-LABlab(39.19, -13.39, 40.70)
CIE-LCHlch(39.19, 42.84, 108.22°)
OKLaboklab(47.12% -0.0411 0.0892)
OKLCHoklch(47.12% 0.098 114.7)
XYZxyz(8.6006, 10.7669, 2.1973)
Luminance0.1077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6112 #191261
analogous
#614012 #5A6112 #336112
triadic
#5A6112 #125A61 #61125A
tetradic
#5A6112 #126140 #191261 #611233
square
#5A6112 #126140 #191261 #611233
split-complementary
#5A6112 #123361 #401261
monochromatic
#181A05 #2A2D08 #5A6112 #8A951C #BAC825

Accessibility & contrast

On white

6.66
#5A6112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5A6112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6112
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6112#FFFFFF#000000##FFFFFF
##5A61121.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C01
Deuteranopia (green-blind)
#685D19
Tritanopia (blue-blind)
#605B52
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a6112;
/* rgb */ color: rgb(90, 97, 18);
/* oklch */ color: oklch(47.1% 0.098 114.7);
Tailwind
colors: {
  custom: {
    50: '#8b8d57',
    500: '#5a6112',
    950: '#000000',
  },
}
SCSS
$custom: #5a6112;
$custom-light: #8b8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6112",
  "rgb": {
    "r": 90,
    "g": 97,
    "b": 18
  },
  "hsl": {
    "h": 65.316,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.47115,
    "c": 0.0982,
    "h": 114.7
  },
  "luminance": 0.10767
}

Semantic roles & 50–950 ramp

primary
#5A6112
secondary
#3E3699
accent
#3CEC4C
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A6112

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

Preview Lab → · Contrast checker → · Palette generator →

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