#5A7D15#5A7D15

#5A7D15 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.3% C 0.132 H 127.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5A7D15
RGBrgb(90, 125, 21)
HSLhsl(80, 71%, 29%)
HSVhsv(80, 83%, 49%)
CMYKcmyk(28%, 0%, 83.2%, 51%)
CIE-LABlab(48.13, -27.79, 47.87)
CIE-LCHlch(48.13, 55.35, 120.14°)
OKLaboklab(54.34% -0.0802 0.1049)
OKLCHoklch(54.34% 0.132 127.4)
XYZxyz(11.6855, 16.8948, 3.3547)
Luminance0.1689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D15 #38157D
analogous
#7D6C15 #5A7D15 #267D15
triadic
#5A7D15 #155A7D #7D155A
tetradic
#5A7D15 #157D6C #38157D #7D1526
square
#5A7D15 #157D6C #38157D #7D1526
split-complementary
#5A7D15 #15267D #6C157D
monochromatic
#131A04 #34490C #5A7D15 #80B11E #A2DC30

Accessibility & contrast

On white

4.80
#5A7D15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5A7D15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7D15
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7D15#FFFFFF#000000##FFFFFF
##5A7D151.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7221
Tritanopia (blue-blind)
#5E776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d15;
/* rgb */ color: rgb(90, 125, 21);
/* oklch */ color: oklch(54.3% 0.132 127.4);
Tailwind
colors: {
  custom: {
    50: '#8ca35d',
    500: '#5a7d15',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d15;
$custom-light: #8ca35d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d15",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 80.192,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54344,
    "c": 0.13209,
    "h": 127.4
  },
  "luminance": 0.16895
}

Semantic roles & 50–950 ramp

primary
#5A7D15
secondary
#643CB2
accent
#3AEE76
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D15

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

Preview Lab → · Contrast checker → · Palette generator →

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