#5A7715#5A7715

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

Color values

HEX#5A7715
RGBrgb(90, 119, 21)
HSLhsl(78, 70%, 27%)
HSVhsv(78, 82%, 47%)
CMYKcmyk(24.4%, 0%, 82.4%, 53.3%)
CIE-LABlab(46.21, -24.85, 46.12)
CIE-LCHlch(46.21, 52.39, 118.31°)
OKLaboklab(52.79% -0.0722 0.1012)
OKLCHoklch(52.79% 0.124 125.5)
XYZxyz(10.9487, 15.4213, 3.1091)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7715 #321577
analogous
#776315 #5A7715 #297715
triadic
#5A7715 #155A77 #77155A
tetradic
#5A7715 #157763 #321577 #771529
square
#5A7715 #157763 #321577 #771529
split-complementary
#5A7715 #152977 #631577
monochromatic
#141A05 #33430C #5A7715 #81AB1E #A7DA2D

Accessibility & contrast

On white

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

On black

4.08
#5A7715 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A7715#FFFFFF#000000##FFFFFF
##5A77151.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a7715;
/* rgb */ color: rgb(90, 119, 21);
/* oklch */ color: oklch(52.8% 0.124 125.5);
Tailwind
colors: {
  custom: {
    50: '#8c9e5c',
    500: '#5a7715',
    950: '#000000',
  },
}
SCSS
$custom: #5a7715;
$custom-light: #8c9e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7715",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 21
  },
  "hsl": {
    "h": 77.755,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.52785,
    "c": 0.12437,
    "h": 125.5
  },
  "luminance": 0.15421
}

Semantic roles & 50–950 ramp

primary
#5A7715
secondary
#5D3BAD
accent
#3BED70
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7715

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

Preview Lab → · Contrast checker → · Palette generator →

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