#5A7A15#5A7A15

#5A7A15 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.6% C 0.128 H 126.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5A7A15
RGBrgb(90, 122, 21)
HSLhsl(79, 71%, 28%)
HSVhsv(79, 83%, 48%)
CMYKcmyk(26.2%, 0%, 82.8%, 52.2%)
CIE-LABlab(47.17, -26.33, 47.00)
CIE-LCHlch(47.17, 53.87, 119.26°)
OKLaboklab(53.56% -0.0763 0.1031)
OKLCHoklch(53.56% 0.128 126.5)
XYZxyz(11.3114, 16.1467, 3.2300)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7A15 #35157A
analogous
#7A6715 #5A7A15 #277A15
triadic
#5A7A15 #155A7A #7A155A
tetradic
#5A7A15 #157A67 #35157A #7A1527
square
#5A7A15 #157A67 #35157A #7A1527
split-complementary
#5A7A15 #15277A #67157A
monochromatic
#131A04 #33460C #5A7A15 #81AE1E #A4DB2E

Accessibility & contrast

On white

4.97
#5A7A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5A7A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7A15
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7A15#FFFFFF#000000##FFFFFF
##5A7A151.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7D6F20
Tritanopia (blue-blind)
#5E7468
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a7a15;
/* rgb */ color: rgb(90, 122, 21);
/* oklch */ color: oklch(53.6% 0.128 126.5);
Tailwind
colors: {
  custom: {
    50: '#8ca05d',
    500: '#5a7a15',
    950: '#000000',
  },
}
SCSS
$custom: #5a7a15;
$custom-light: #8ca05d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7a15",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 79.01,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53564,
    "c": 0.12824,
    "h": 126.5
  },
  "luminance": 0.16147
}

Semantic roles & 50–950 ramp

primary
#5A7A15
secondary
#603BAF
accent
#3AED73
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7A15

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

Preview Lab → · Contrast checker → · Palette generator →

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