#5A7517#5A7517

#5A7517 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.3% C 0.121 H 124.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5A7517
RGBrgb(90, 117, 23)
HSLhsl(77, 67%, 27%)
HSVhsv(77, 80%, 46%)
CMYKcmyk(23.1%, 0%, 80.3%, 54.1%)
CIE-LABlab(45.58, -23.75, 44.89)
CIE-LCHlch(45.58, 50.78, 117.88°)
OKLaboklab(52.28% -0.0691 0.099)
OKLCHoklch(52.28% 0.121 124.9)
XYZxyz(10.7325, 14.9580, 3.1322)
Luminance0.1496 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7517 #321775
analogous
#756117 #5A7517 #2B7517
triadic
#5A7517 #175A75 #75175A
tetradic
#5A7517 #177561 #321775 #75172B
square
#5A7517 #177561 #321775 #75172B
split-complementary
#5A7517 #172B75 #611775
monochromatic
#141A05 #33420D #5A7517 #81A821 #A7D630

Accessibility & contrast

On white

5.26
#5A7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5A7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7517
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7517#FFFFFF#000000##FFFFFF
##5A75171.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#786C20
Tritanopia (blue-blind)
#5F6F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a7517;
/* rgb */ color: rgb(90, 117, 23);
/* oklch */ color: oklch(52.3% 0.121 124.9);
Tailwind
colors: {
  custom: {
    50: '#8c9c5d',
    500: '#5a7517',
    950: '#000000',
  },
}
SCSS
$custom: #5a7517;
$custom-light: #8c9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7517",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 77.234,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.52278,
    "c": 0.12072,
    "h": 124.9
  },
  "luminance": 0.14958
}

Semantic roles & 50–950 ramp

primary
#5A7517
secondary
#5D3DAA
accent
#3EEA6F
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7517

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

Preview Lab → · Contrast checker → · Palette generator →

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