#5A7D14#5A7D14

#5A7D14 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.3% C 0.133 H 127.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5A7D14
RGBrgb(90, 125, 20)
HSLhsl(80, 72%, 28%)
HSVhsv(80, 84%, 49%)
CMYKcmyk(28%, 0%, 84%, 51%)
CIE-LABlab(48.12, -27.83, 48.16)
CIE-LCHlch(48.12, 55.62, 120.03°)
OKLaboklab(54.34% -0.0804 0.1054)
OKLCHoklch(54.34% 0.133 127.3)
XYZxyz(11.6764, 16.8911, 3.3068)
Luminance0.1689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D14 #37147D
analogous
#7D6B14 #5A7D14 #257D14
triadic
#5A7D14 #145A7D #7D145A
tetradic
#5A7D14 #147D6B #37147D #7D1425
square
#5A7D14 #147D6B #37147D #7D1425
split-complementary
#5A7D14 #14257D #6B147D
monochromatic
#131A04 #34480C #5A7D14 #80B21C #A3DE2E

Accessibility & contrast

On white

4.80
#5A7D14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5A7D14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7D14
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7D14#FFFFFF#000000##FFFFFF
##5A7D141.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7220
Tritanopia (blue-blind)
#5E776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d14;
/* rgb */ color: rgb(90, 125, 20);
/* oklch */ color: oklch(54.3% 0.133 127.3);
Tailwind
colors: {
  custom: {
    50: '#8ca35d',
    500: '#5a7d14',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d14;
$custom-light: #8ca35d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d14",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 20
  },
  "hsl": {
    "h": 80,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54339,
    "c": 0.13256,
    "h": 127.3
  },
  "luminance": 0.16891
}

Semantic roles & 50–950 ramp

primary
#5A7D14
secondary
#623AB2
accent
#39EF75
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D14

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

Preview Lab → · Contrast checker → · Palette generator →

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