#5A7B15#5A7B15

#5A7B15 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.8% C 0.130 H 126.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5A7B15
RGBrgb(90, 123, 21)
HSLhsl(79, 71%, 28%)
HSVhsv(79, 83%, 48%)
CMYKcmyk(26.8%, 0%, 82.9%, 51.8%)
CIE-LABlab(47.49, -26.82, 47.29)
CIE-LCHlch(47.49, 54.36, 119.56°)
OKLaboklab(53.82% -0.0776 0.1037)
OKLCHoklch(53.82% 0.13 126.8)
XYZxyz(11.4348, 16.3935, 3.2711)
Luminance0.1639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7B15 #36157B
analogous
#7B6915 #5A7B15 #277B15
triadic
#5A7B15 #155A7B #7B155A
tetradic
#5A7B15 #157B69 #36157B #7B1527
square
#5A7B15 #157B69 #36157B #7B1527
split-complementary
#5A7B15 #15277B #69157B
monochromatic
#131A04 #34470C #5A7B15 #80AF1E #A4DB2F

Accessibility & contrast

On white

4.91
#5A7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5A7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7B15
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7B15#FFFFFF#000000##FFFFFF
##5A7B151.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#5E7568
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7b15;
/* rgb */ color: rgb(90, 123, 21);
/* oklch */ color: oklch(53.8% 0.130 126.8);
Tailwind
colors: {
  custom: {
    50: '#8ca15d',
    500: '#5a7b15',
    950: '#000000',
  },
}
SCSS
$custom: #5a7b15;
$custom-light: #8ca15d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7b15",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 79.412,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53824,
    "c": 0.12953,
    "h": 126.8
  },
  "luminance": 0.16394
}

Semantic roles & 50–950 ramp

primary
#5A7B15
secondary
#613BB0
accent
#3AEE74
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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