#5A6917#5A6917

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

Color values

HEX#5A6917
RGBrgb(90, 105, 23)
HSLhsl(71, 64%, 25%)
HSVhsv(71, 78%, 41%)
CMYKcmyk(14.3%, 0%, 78.1%, 58.8%)
CIE-LABlab(41.75, -17.51, 41.28)
CIE-LCHlch(41.75, 44.84, 112.98°)
OKLaboklab(49.19% -0.052 0.0914)
OKLCHoklch(49.19% 0.105 119.6)
XYZxyz(9.4229, 12.3387, 2.6957)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6917 #261769
analogous
#694F17 #5A6917 #316917
triadic
#5A6917 #175A69 #69175A
tetradic
#5A6917 #17694F #261769 #691731
square
#5A6917 #17694F #261769 #691731
split-complementary
#5A6917 #173169 #4F1769
monochromatic
#161905 #2F370C #5A6917 #859B22 #B0CD2D

Accessibility & contrast

On white

6.06
#5A6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A6917
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6917#FFFFFF#000000##FFFFFF
##5A69171.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a6917;
/* rgb */ color: rgb(90, 105, 23);
/* oklch */ color: oklch(49.2% 0.105 119.6);
Tailwind
colors: {
  custom: {
    50: '#8b935b',
    500: '#5a6917',
    950: '#000000',
  },
}
SCSS
$custom: #5a6917;
$custom-light: #8b935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6917",
  "rgb": {
    "r": 90,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 70.976,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.49186,
    "c": 0.10514,
    "h": 119.6
  },
  "luminance": 0.12339
}

Semantic roles & 50–950 ramp

primary
#5A6917
secondary
#4F3D9F
accent
#41E75F
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6917

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

Preview Lab → · Contrast checker → · Palette generator →

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