#5A8117#5A8117

#5A8117 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.4% C 0.136 H 128.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5A8117
RGBrgb(90, 129, 23)
HSLhsl(82, 70%, 30%)
HSVhsv(82, 82%, 51%)
CMYKcmyk(30.2%, 0%, 82.2%, 49.4%)
CIE-LABlab(49.42, -29.61, 48.43)
CIE-LCHlch(49.42, 56.76, 121.44°)
OKLaboklab(55.4% -0.085 0.1065)
OKLCHoklch(55.4% 0.136 128.6)
XYZxyz(12.2214, 17.9357, 3.6285)
Luminance0.1794 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8117 #3E1781
analogous
#817317 #5A8117 #258117
triadic
#5A8117 #175A81 #81175A
tetradic
#5A8117 #178173 #3E1781 #811725
square
#5A8117 #178173 #3E1781 #811725
split-complementary
#5A8117 #172581 #731781
monochromatic
#121A05 #364D0E #5A8117 #7EB520 #9FDB37

Accessibility & contrast

On white

4.58
#5A8117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#5A8117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8117
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8117#FFFFFF#000000##000000
##5A81171.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#827523
Tritanopia (blue-blind)
#5D7B6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8117;
/* rgb */ color: rgb(90, 129, 23);
/* oklch */ color: oklch(55.4% 0.136 128.6);
Tailwind
colors: {
  custom: {
    50: '#8da65e',
    500: '#5a8117',
    950: '#000000',
  },
}
SCSS
$custom: #5a8117;
$custom-light: #8da65e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8117",
  "rgb": {
    "r": 90,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 82.075,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55397,
    "c": 0.13624,
    "h": 128.6
  },
  "luminance": 0.17936
}

Semantic roles & 50–950 ramp

primary
#5A8117
secondary
#6A3EB5
accent
#3BED7C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8117

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

Preview Lab → · Contrast checker → · Palette generator →

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