#5A7817#5A7817

#5A7817 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.125 H 126.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A7817
RGBrgb(90, 120, 23)
HSLhsl(79, 68%, 28%)
HSVhsv(79, 81%, 47%)
CMYKcmyk(25%, 0%, 80.8%, 52.9%)
CIE-LABlab(46.54, -25.25, 45.78)
CIE-LCHlch(46.54, 52.28, 118.88°)
OKLaboklab(53.06% -0.0732 0.1009)
OKLCHoklch(53.06% 0.125 126)
XYZxyz(11.0876, 15.6683, 3.2506)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7817 #351778
analogous
#786517 #5A7817 #297817
triadic
#5A7817 #175A78 #78175A
tetradic
#5A7817 #177865 #351778 #781729
square
#5A7817 #177865 #351778 #781729
split-complementary
#5A7817 #172978 #651778
monochromatic
#131A05 #33450D #5A7817 #81AB21 #A4D832

Accessibility & contrast

On white

5.08
#5A7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5A7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7817
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7817#FFFFFF#000000##FFFFFF
##5A78171.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#5E7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a7817;
/* rgb */ color: rgb(90, 120, 23);
/* oklch */ color: oklch(53.1% 0.125 126.0);
Tailwind
colors: {
  custom: {
    50: '#8c9f5d',
    500: '#5a7817',
    950: '#000000',
  },
}
SCSS
$custom: #5a7817;
$custom-light: #8c9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7817",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 78.557,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53056,
    "c": 0.12462,
    "h": 126
  },
  "luminance": 0.15668
}

Semantic roles & 50–950 ramp

primary
#5A7817
secondary
#603EAD
accent
#3DEB73
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7817

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

Preview Lab → · Contrast checker → · Palette generator →

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