#5A7C13#5A7C13

#5A7C13 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 54.1% C 0.132 H 127.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5A7C13
RGBrgb(90, 124, 19)
HSLhsl(79, 73%, 28%)
HSVhsv(79, 85%, 49%)
CMYKcmyk(27.4%, 0%, 84.7%, 51.4%)
CIE-LABlab(47.80, -27.39, 48.15)
CIE-LCHlch(47.80, 55.40, 119.63°)
OKLaboklab(54.07% -0.0793 0.1052)
OKLCHoklch(54.07% 0.132 127)
XYZxyz(11.5417, 16.6357, 3.2189)
Luminance0.1664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7C13 #35137C
analogous
#7C6A13 #5A7C13 #257C13
triadic
#5A7C13 #135A7C #7C135A
tetradic
#5A7C13 #137C6A #35137C #7C1325
square
#5A7C13 #137C6A #35137C #7C1325
split-complementary
#5A7C13 #13257C #6A137C
monochromatic
#131B04 #33470B #5A7C13 #81B11B #A4DF2B

Accessibility & contrast

On white

4.85
#5A7C13 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5A7C13 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7C13
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7C13#FFFFFF#000000##FFFFFF
##5A7C131.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7E711F
Tritanopia (blue-blind)
#5E7669
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7c13;
/* rgb */ color: rgb(90, 124, 19);
/* oklch */ color: oklch(54.1% 0.132 127.0);
Tailwind
colors: {
  custom: {
    50: '#8ca25c',
    500: '#5a7c13',
    950: '#000000',
  },
}
SCSS
$custom: #5a7c13;
$custom-light: #8ca25c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7c13",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 19
  },
  "hsl": {
    "h": 79.429,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54074,
    "c": 0.13174,
    "h": 127
  },
  "luminance": 0.16636
}

Semantic roles & 50–950 ramp

primary
#5A7C13
secondary
#6039B2
accent
#38F073
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0F04
muted
#7D7E79

Preview Lab

Preview with #5A7C13

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

Preview Lab → · Contrast checker → · Palette generator →

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