#5A7718#5A7718

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

Color values

HEX#5A7718
RGBrgb(90, 119, 24)
HSLhsl(78, 66%, 28%)
HSVhsv(78, 80%, 47%)
CMYKcmyk(24.4%, 0%, 79.8%, 53.3%)
CIE-LABlab(46.22, -24.70, 45.15)
CIE-LCHlch(46.22, 51.46, 118.68°)
OKLaboklab(52.8% -0.0716 0.0997)
OKLCHoklch(52.8% 0.123 125.7)
XYZxyz(10.9782, 15.4331, 3.2645)
Luminance0.1543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7718 #351877
analogous
#776418 #5A7718 #2A7718
triadic
#5A7718 #185A77 #77185A
tetradic
#5A7718 #187764 #351877 #77182A
square
#5A7718 #187764 #351877 #77182A
split-complementary
#5A7718 #182A77 #641877
monochromatic
#131905 #33440E #5A7718 #81AA22 #A4D633

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7718#FFFFFF#000000##FFFFFF
##5A77181.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)
#7E6F01
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#5E7165
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7718;
/* rgb */ color: rgb(90, 119, 24);
/* oklch */ color: oklch(52.8% 0.123 125.7);
Tailwind
colors: {
  custom: {
    50: '#8c9e5d',
    500: '#5a7718',
    950: '#000000',
  },
}
SCSS
$custom: #5a7718;
$custom-light: #8c9e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7718",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 24
  },
  "hsl": {
    "h": 78.316,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52803,
    "c": 0.12275,
    "h": 125.7
  },
  "luminance": 0.15433
}

Semantic roles & 50–950 ramp

primary
#5A7718
secondary
#603FAC
accent
#3EE973
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7718

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

Preview Lab → · Contrast checker → · Palette generator →

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