#5A8115#5A8115

#5A8115 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.4% C 0.137 H 128.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5A8115
RGBrgb(90, 129, 21)
HSLhsl(82, 72%, 29%)
HSVhsv(82, 84%, 51%)
CMYKcmyk(30.2%, 0%, 83.7%, 49.4%)
CIE-LABlab(49.41, -29.70, 49.02)
CIE-LCHlch(49.41, 57.32, 121.21°)
OKLaboklab(55.39% -0.0854 0.1074)
OKLCHoklch(55.39% 0.137 128.5)
XYZxyz(12.2021, 17.9280, 3.5269)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8115 #3C1581
analogous
#817215 #5A8115 #248115
triadic
#5A8115 #155A81 #81155A
tetradic
#5A8115 #158172 #3C1581 #811524
square
#5A8115 #158172 #3C1581 #811524
split-complementary
#5A8115 #152481 #721581
monochromatic
#121A04 #354C0C #5A8115 #7FB61E #A0DE33

Accessibility & contrast

On white

4.58
#5A8115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#5A8115 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8115
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8115#FFFFFF#000000##000000
##5A81151.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#827521
Tritanopia (blue-blind)
#5D7B6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8115;
/* rgb */ color: rgb(90, 129, 21);
/* oklch */ color: oklch(55.4% 0.137 128.5);
Tailwind
colors: {
  custom: {
    50: '#8da65e',
    500: '#5a8115',
    950: '#000000',
  },
}
SCSS
$custom: #5a8115;
$custom-light: #8da65e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8115",
  "rgb": {
    "r": 90,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 81.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55387,
    "c": 0.1372,
    "h": 128.5
  },
  "luminance": 0.17928
}

Semantic roles & 50–950 ramp

primary
#5A8115
secondary
#683CB6
accent
#39EF7B
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8115

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

Preview Lab → · Contrast checker → · Palette generator →

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