#5A7918#5A7918

#5A7918 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.3% C 0.125 H 126.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5A7918
RGBrgb(90, 121, 24)
HSLhsl(79, 67%, 28%)
HSVhsv(79, 80%, 47%)
CMYKcmyk(25.6%, 0%, 80.2%, 52.5%)
CIE-LABlab(46.86, -25.69, 45.75)
CIE-LCHlch(46.86, 52.46, 119.32°)
OKLaboklab(53.32% -0.0743 0.101)
OKLCHoklch(53.32% 0.125 126.3)
XYZxyz(11.2188, 15.9142, 3.3447)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7918 #371879
analogous
#796718 #5A7918 #297918
triadic
#5A7918 #185A79 #79185A
tetradic
#5A7918 #187967 #371879 #791829
square
#5A7918 #187967 #371879 #791829
split-complementary
#5A7918 #182979 #671879
monochromatic
#131A05 #34460E #5A7918 #80AC22 #A3D735

Accessibility & contrast

On white

5.02
#5A7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5A7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7918
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7918#FFFFFF#000000##FFFFFF
##5A79181.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#5E7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a7918;
/* rgb */ color: rgb(90, 121, 24);
/* oklch */ color: oklch(53.3% 0.125 126.3);
Tailwind
colors: {
  custom: {
    50: '#8ca05e',
    500: '#5a7918',
    950: '#000000',
  },
}
SCSS
$custom: #5a7918;
$custom-light: #8ca05e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7918",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 79.175,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53322,
    "c": 0.12538,
    "h": 126.3
  },
  "luminance": 0.15914
}

Semantic roles & 50–950 ramp

primary
#5A7918
secondary
#623FAE
accent
#3EEA75
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7918

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

Preview Lab → · Contrast checker → · Palette generator →

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