#5A7615#5A7615

#5A7615 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.5% C 0.123 H 125.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5A7615
RGBrgb(90, 118, 21)
HSLhsl(77, 70%, 27%)
HSVhsv(77, 82%, 46%)
CMYKcmyk(23.7%, 0%, 82.2%, 53.7%)
CIE-LABlab(45.89, -24.35, 45.83)
CIE-LCHlch(45.89, 51.90, 117.98°)
OKLaboklab(52.53% -0.0709 0.1006)
OKLCHoklch(52.53% 0.123 125.2)
XYZxyz(10.8303, 15.1845, 3.0696)
Luminance0.1519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7615 #311576
analogous
#766215 #5A7615 #297615
triadic
#5A7615 #155A76 #76155A
tetradic
#5A7615 #157662 #311576 #761529
square
#5A7615 #157662 #311576 #761529
split-complementary
#5A7615 #152976 #621576
monochromatic
#141A05 #32420C #5A7615 #82AA1E #A7D92C

Accessibility & contrast

On white

5.20
#5A7615 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5A7615 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7615
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7615#FFFFFF#000000##FFFFFF
##5A76151.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#5E7064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7615;
/* rgb */ color: rgb(90, 118, 21);
/* oklch */ color: oklch(52.5% 0.123 125.2);
Tailwind
colors: {
  custom: {
    50: '#8c9d5c',
    500: '#5a7615',
    950: '#000000',
  },
}
SCSS
$custom: #5a7615;
$custom-light: #8c9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7615",
  "rgb": {
    "r": 90,
    "g": 118,
    "b": 21
  },
  "hsl": {
    "h": 77.32,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.52525,
    "c": 0.12309,
    "h": 125.2
  },
  "luminance": 0.15185
}

Semantic roles & 50–950 ramp

primary
#5A7615
secondary
#5C3BAC
accent
#3BED6E
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7615

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

Preview Lab → · Contrast checker → · Palette generator →

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