#5A7717#5A7717

#5A7717 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.8% C 0.123 H 125.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A7717
RGBrgb(90, 119, 23)
HSLhsl(78, 68%, 28%)
HSVhsv(78, 81%, 47%)
CMYKcmyk(24.4%, 0%, 80.7%, 53.3%)
CIE-LABlab(46.22, -24.75, 45.48)
CIE-LCHlch(46.22, 51.78, 118.55°)
OKLaboklab(52.8% -0.0718 0.1002)
OKLCHoklch(52.8% 0.123 125.6)
XYZxyz(10.9680, 15.4290, 3.2107)
Luminance0.1543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7717 #341777
analogous
#776417 #5A7717 #2A7717
triadic
#5A7717 #175A77 #77175A
tetradic
#5A7717 #177764 #341777 #77172A
square
#5A7717 #177764 #341777 #77172A
split-complementary
#5A7717 #172A77 #641777
monochromatic
#131A05 #33440D #5A7717 #81AA21 #A5D731

Accessibility & contrast

On white

5.14
#5A7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5A7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7717
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7717#FFFFFF#000000##FFFFFF
##5A77171.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#5E7165
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7717;
/* rgb */ color: rgb(90, 119, 23);
/* oklch */ color: oklch(52.8% 0.123 125.6);
Tailwind
colors: {
  custom: {
    50: '#8c9e5d',
    500: '#5a7717',
    950: '#000000',
  },
}
SCSS
$custom: #5a7717;
$custom-light: #8c9e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7717",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 78.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52796,
    "c": 0.12331,
    "h": 125.6
  },
  "luminance": 0.15429
}

Semantic roles & 50–950 ramp

primary
#5A7717
secondary
#5F3EAC
accent
#3DEA72
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7717

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

Preview Lab → · Contrast checker → · Palette generator →

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