#5A6918#5A6918

#5A6918 is a mid, moderate yellow-green. Relative luminance 0.123; OKLCH L 49.2% C 0.104 H 119.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5A6918
RGBrgb(90, 105, 24)
HSLhsl(71, 63%, 25%)
HSVhsv(71, 77%, 41%)
CMYKcmyk(14.3%, 0%, 77.1%, 58.8%)
CIE-LABlab(41.76, -17.45, 40.90)
CIE-LCHlch(41.76, 44.47, 113.11°)
OKLaboklab(49.19% -0.0517 0.0908)
OKLCHoklch(49.19% 0.104 119.7)
XYZxyz(9.4331, 12.3428, 2.7494)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6918 #271869
analogous
#694F18 #5A6918 #316918
triadic
#5A6918 #185A69 #69185A
tetradic
#5A6918 #18694F #271869 #691831
square
#5A6918 #18694F #271869 #691831
split-complementary
#5A6918 #183169 #4F1869
monochromatic
#151906 #2F370D #5A6918 #859B23 #AFCD2F

Accessibility & contrast

On white

6.05
#5A6918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5A6918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6918
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6918#FFFFFF#000000##FFFFFF
##5A69181.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706308
Deuteranopia (green-blind)
#6E631F
Tritanopia (blue-blind)
#606359
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6918;
/* rgb */ color: rgb(90, 105, 24);
/* oklch */ color: oklch(49.2% 0.104 119.7);
Tailwind
colors: {
  custom: {
    50: '#8b935b',
    500: '#5a6918',
    950: '#000000',
  },
}
SCSS
$custom: #5a6918;
$custom-light: #8b935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6918",
  "rgb": {
    "r": 90,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 71.111,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.49193,
    "c": 0.10449,
    "h": 119.7
  },
  "luminance": 0.12343
}

Semantic roles & 50–950 ramp

primary
#5A6918
secondary
#503E9F
accent
#42E660
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6918

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

Preview Lab → · Contrast checker → · Palette generator →

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