#5A8015#5A8015

#5A8015 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.1% C 0.136 H 128.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5A8015
RGBrgb(90, 128, 21)
HSLhsl(81, 72%, 29%)
HSVhsv(81, 84%, 50%)
CMYKcmyk(29.7%, 0%, 83.6%, 49.8%)
CIE-LABlab(49.09, -29.23, 48.73)
CIE-LCHlch(49.09, 56.82, 120.95°)
OKLaboklab(55.13% -0.0841 0.1068)
OKLCHoklch(55.13% 0.136 128.2)
XYZxyz(12.0710, 17.6658, 3.4832)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8015 #3B1580
analogous
#807115 #5A8015 #258015
triadic
#5A8015 #155A80 #80155A
tetradic
#5A8015 #158071 #3B1580 #801525
square
#5A8015 #158071 #3B1580 #801525
split-complementary
#5A8015 #152580 #711580
monochromatic
#121A04 #354B0C #5A8015 #7FB51E #A1DD32

Accessibility & contrast

On white

4.63
#5A8015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5A8015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A8015
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8015#FFFFFF#000000##FFFFFF
##5A80151.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#827421
Tritanopia (blue-blind)
#5D7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8015;
/* rgb */ color: rgb(90, 128, 21);
/* oklch */ color: oklch(55.1% 0.136 128.2);
Tailwind
colors: {
  custom: {
    50: '#8da55e',
    500: '#5a8015',
    950: '#000000',
  },
}
SCSS
$custom: #5a8015;
$custom-light: #8da55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8015",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 81.308,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.55126,
    "c": 0.13593,
    "h": 128.2
  },
  "luminance": 0.17666
}

Semantic roles & 50–950 ramp

primary
#5A8015
secondary
#673CB5
accent
#39EF7A
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8015

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

Preview Lab → · Contrast checker → · Palette generator →

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