#5A7E11#5A7E11

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

Color values

HEX#5A7E11
RGBrgb(90, 126, 17)
HSLhsl(80, 76%, 28%)
HSVhsv(80, 87%, 49%)
CMYKcmyk(28.6%, 0%, 86.5%, 50.6%)
CIE-LABlab(48.43, -28.44, 49.26)
CIE-LCHlch(48.43, 56.88, 120.00°)
OKLaboklab(54.58% -0.0822 0.1072)
OKLCHoklch(54.58% 0.135 127.5)
XYZxyz(11.7785, 17.1356, 3.2171)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E11 #35117E
analogous
#7E6C11 #5A7E11 #237E11
triadic
#5A7E11 #115A7E #7E115A
tetradic
#5A7E11 #117E6C #35117E #7E1123
square
#5A7E11 #117E6C #35117E #7E1123
split-complementary
#5A7E11 #11237E #6C117E
monochromatic
#131B04 #33480A #5A7E11 #81B418 #A4E227

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7E11#FFFFFF#000000##FFFFFF
##5A7E111.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)
#80721E
Tritanopia (blue-blind)
#5E786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e11;
/* rgb */ color: rgb(90, 126, 17);
/* oklch */ color: oklch(54.6% 0.135 127.5);
Tailwind
colors: {
  custom: {
    50: '#8da35c',
    500: '#5a7e11',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e11;
$custom-light: #8da35c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e11",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 17
  },
  "hsl": {
    "h": 79.817,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54585,
    "c": 0.13513,
    "h": 127.5
  },
  "luminance": 0.17136
}

Semantic roles & 50–950 ramp

primary
#5A7E11
secondary
#6037B4
accent
#35F374
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F04
muted
#7D7F79

Preview Lab

Preview with #5A7E11

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

Preview Lab → · Contrast checker → · Palette generator →

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