#5A7F14#5A7F14

#5A7F14 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.135 H 127.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5A7F14
RGBrgb(90, 127, 20)
HSLhsl(81, 73%, 29%)
HSVhsv(81, 84%, 50%)
CMYKcmyk(29.1%, 0%, 84.3%, 50.2%)
CIE-LABlab(48.76, -28.79, 48.73)
CIE-LCHlch(48.76, 56.60, 120.58°)
OKLaboklab(54.86% -0.083 0.1066)
OKLCHoklch(54.86% 0.135 127.9)
XYZxyz(11.9321, 17.4026, 3.3921)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7F14 #39147F
analogous
#7F6F14 #5A7F14 #257F14
triadic
#5A7F14 #145A7F #7F145A
tetradic
#5A7F14 #147F6F #39147F #7F1425
square
#5A7F14 #147F6F #39147F #7F1425
split-complementary
#5A7F14 #14257F #6F147F
monochromatic
#131A04 #354A0C #5A7F14 #7FB41C #A2DE2F

Accessibility & contrast

On white

4.69
#5A7F14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5A7F14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7F14
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7F14#FFFFFF#000000##FFFFFF
##5A7F141.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#817320
Tritanopia (blue-blind)
#5E796C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a7f14;
/* rgb */ color: rgb(90, 127, 20);
/* oklch */ color: oklch(54.9% 0.135 127.9);
Tailwind
colors: {
  custom: {
    50: '#8da45d',
    500: '#5a7f14',
    950: '#000000',
  },
}
SCSS
$custom: #5a7f14;
$custom-light: #8da45d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7f14",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 20
  },
  "hsl": {
    "h": 80.748,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5486,
    "c": 0.13511,
    "h": 127.9
  },
  "luminance": 0.17403
}

Semantic roles & 50–950 ramp

primary
#5A7F14
secondary
#653BB4
accent
#38EF78
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A7F14

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

Preview Lab → · Contrast checker → · Palette generator →

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