#5A7F15#5A7F15

#5A7F15 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.135 H 128.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5A7F15
RGBrgb(90, 127, 21)
HSLhsl(81, 72%, 29%)
HSVhsv(81, 83%, 50%)
CMYKcmyk(29.1%, 0%, 83.5%, 50.2%)
CIE-LABlab(48.77, -28.75, 48.44)
CIE-LCHlch(48.77, 56.33, 120.69°)
OKLaboklab(54.86% -0.0828 0.1062)
OKLCHoklch(54.86% 0.135 128)
XYZxyz(11.9412, 17.4063, 3.4399)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7F15 #3A157F
analogous
#7F6F15 #5A7F15 #257F15
triadic
#5A7F15 #155A7F #7F155A
tetradic
#5A7F15 #157F6F #3A157F #7F1525
square
#5A7F15 #157F6F #3A157F #7F1525
split-complementary
#5A7F15 #15257F #6F157F
monochromatic
#131A04 #354A0C #5A7F15 #7FB41E #A1DD31

Accessibility & contrast

On white

4.69
#5A7F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5A7F15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7F15
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7F15#FFFFFF#000000##FFFFFF
##5A7F151.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#817321
Tritanopia (blue-blind)
#5E796C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a7f15;
/* rgb */ color: rgb(90, 127, 21);
/* oklch */ color: oklch(54.9% 0.135 128.0);
Tailwind
colors: {
  custom: {
    50: '#8da45d',
    500: '#5a7f15',
    950: '#000000',
  },
}
SCSS
$custom: #5a7f15;
$custom-light: #8da45d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7f15",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 80.943,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54865,
    "c": 0.13465,
    "h": 128
  },
  "luminance": 0.17407
}

Semantic roles & 50–950 ramp

primary
#5A7F15
secondary
#663CB4
accent
#39EE79
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A7F15

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

Preview Lab → · Contrast checker → · Palette generator →

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