#5A7C15#5A7C15

#5A7C15 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 54.1% C 0.131 H 127.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5A7C15
RGBrgb(90, 124, 21)
HSLhsl(80, 71%, 28%)
HSVhsv(80, 83%, 49%)
CMYKcmyk(27.4%, 0%, 83.1%, 51.4%)
CIE-LABlab(47.81, -27.30, 47.58)
CIE-LCHlch(47.81, 54.85, 119.85°)
OKLaboklab(54.08% -0.0789 0.1043)
OKLCHoklch(54.08% 0.131 127.1)
XYZxyz(11.5595, 16.6429, 3.3127)
Luminance0.1664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7C15 #37157C
analogous
#7C6A15 #5A7C15 #267C15
triadic
#5A7C15 #155A7C #7C155A
tetradic
#5A7C15 #157C6A #37157C #7C1526
square
#5A7C15 #157C6A #37157C #7C1526
split-complementary
#5A7C15 #15267C #6A157C
monochromatic
#131A04 #34480C #5A7C15 #80B01E #A3DC30

Accessibility & contrast

On white

4.85
#5A7C15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5A7C15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7C15
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7C15#FFFFFF#000000##FFFFFF
##5A7C151.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7E7120
Tritanopia (blue-blind)
#5E7669
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7c15;
/* rgb */ color: rgb(90, 124, 21);
/* oklch */ color: oklch(54.1% 0.131 127.1);
Tailwind
colors: {
  custom: {
    50: '#8ca25d',
    500: '#5a7c15',
    950: '#000000',
  },
}
SCSS
$custom: #5a7c15;
$custom-light: #8ca25d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7c15",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 79.806,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54084,
    "c": 0.13081,
    "h": 127.1
  },
  "luminance": 0.16643
}

Semantic roles & 50–950 ramp

primary
#5A7C15
secondary
#623CB1
accent
#3AEE75
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7C15

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

Preview Lab → · Contrast checker → · Palette generator →

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