#5A6115#5A6115

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

Color values

HEX#5A6115
RGBrgb(90, 97, 21)
HSLhsl(66, 64%, 23%)
HSVhsv(66, 78%, 38%)
CMYKcmyk(7.2%, 0%, 78.4%, 62%)
CIE-LABlab(39.20, -13.24, 39.61)
CIE-LCHlch(39.20, 41.77, 108.48°)
OKLaboklab(47.14% -0.0404 0.0875)
OKLCHoklch(47.14% 0.096 114.8)
XYZxyz(8.6267, 10.7773, 2.3351)
Luminance0.1078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6115 #1C1561
analogous
#614215 #5A6115 #346115
triadic
#5A6115 #155A61 #61155A
tetradic
#5A6115 #156142 #1C1561 #611534
square
#5A6115 #156142 #1C1561 #611534
split-complementary
#5A6115 #153461 #421561
monochromatic
#171905 #2B2F0A #5A6115 #899320 #B7C62B

Accessibility & contrast

On white

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

On black

3.16
#5A6115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A6115#FFFFFF#000000##FFFFFF
##5A61151.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a6115;
/* rgb */ color: rgb(90, 97, 21);
/* oklch */ color: oklch(47.1% 0.096 114.8);
Tailwind
colors: {
  custom: {
    50: '#8b8d59',
    500: '#5a6115',
    950: '#000000',
  },
}
SCSS
$custom: #5a6115;
$custom-light: #8b8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6115",
  "rgb": {
    "r": 90,
    "g": 97,
    "b": 21
  },
  "hsl": {
    "h": 65.526,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.47135,
    "c": 0.09636,
    "h": 114.8
  },
  "luminance": 0.10777
}

Semantic roles & 50–950 ramp

primary
#5A6115
secondary
#423A98
accent
#40E750
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6115

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

Preview Lab → · Contrast checker → · Palette generator →

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