#5A7E13#5A7E13

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

Color values

HEX#5A7E13
RGBrgb(90, 126, 19)
HSLhsl(80, 74%, 28%)
HSVhsv(80, 85%, 49%)
CMYKcmyk(28.6%, 0%, 84.9%, 50.6%)
CIE-LABlab(48.44, -28.36, 48.72)
CIE-LCHlch(48.44, 56.37, 120.20°)
OKLaboklab(54.6% -0.0819 0.1064)
OKLCHoklch(54.6% 0.134 127.6)
XYZxyz(11.7949, 17.1421, 3.3033)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E13 #37137E
analogous
#7E6C13 #5A7E13 #247E13
triadic
#5A7E13 #135A7E #7E135A
tetradic
#5A7E13 #137E6C #37137E #7E1324
square
#5A7E13 #137E6C #37137E #7E1324
split-complementary
#5A7E13 #13247E #6C137E
monochromatic
#131B04 #34490B #5A7E13 #80B31B #A3DF2C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5a7e13;
/* rgb */ color: rgb(90, 126, 19);
/* oklch */ color: oklch(54.6% 0.134 127.6);
Tailwind
colors: {
  custom: {
    50: '#8da35c',
    500: '#5a7e13',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e13;
$custom-light: #8da35c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e13",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 19
  },
  "hsl": {
    "h": 80.187,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54595,
    "c": 0.13429,
    "h": 127.6
  },
  "luminance": 0.17142
}

Semantic roles & 50–950 ramp

primary
#5A7E13
secondary
#6239B4
accent
#37F076
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A7E13

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

Preview Lab → · Contrast checker → · Palette generator →

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