#5A7E15#5A7E15

#5A7E15 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.6% C 0.133 H 127.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5A7E15
RGBrgb(90, 126, 21)
HSLhsl(81, 71%, 29%)
HSVhsv(81, 83%, 49%)
CMYKcmyk(28.6%, 0%, 83.3%, 50.6%)
CIE-LABlab(48.45, -28.27, 48.15)
CIE-LCHlch(48.45, 55.84, 120.42°)
OKLaboklab(54.61% -0.0815 0.1055)
OKLCHoklch(54.61% 0.133 127.7)
XYZxyz(11.8127, 17.1492, 3.3971)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E15 #39157E
analogous
#7E6E15 #5A7E15 #267E15
triadic
#5A7E15 #155A7E #7E155A
tetradic
#5A7E15 #157E6E #39157E #7E1526
square
#5A7E15 #157E6E #39157E #7E1526
split-complementary
#5A7E15 #15267E #6E157E
monochromatic
#131A04 #354A0C #5A7E15 #7FB21E #A2DD31

Accessibility & contrast

On white

4.74
#5A7E15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5A7E15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7E15
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7E15#FFFFFF#000000##FFFFFF
##5A7E151.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#807221
Tritanopia (blue-blind)
#5E786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e15;
/* rgb */ color: rgb(90, 126, 21);
/* oklch */ color: oklch(54.6% 0.133 127.7);
Tailwind
colors: {
  custom: {
    50: '#8ca35d',
    500: '#5a7e15',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e15;
$custom-light: #8ca35d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e15",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 21
  },
  "hsl": {
    "h": 80.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54605,
    "c": 0.13336,
    "h": 127.7
  },
  "luminance": 0.1715
}

Semantic roles & 50–950 ramp

primary
#5A7E15
secondary
#653CB3
accent
#3AEE78
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7E15

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

Preview Lab → · Contrast checker → · Palette generator →

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