#5A7415#5A7415

#5A7415 is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 52.0% C 0.121 H 124.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5A7415
RGBrgb(90, 116, 21)
HSLhsl(76, 69%, 27%)
HSVhsv(76, 82%, 45%)
CMYKcmyk(22.4%, 0%, 81.9%, 54.5%)
CIE-LABlab(45.25, -23.34, 45.24)
CIE-LCHlch(45.25, 50.91, 117.29°)
OKLaboklab(52.01% -0.0681 0.0994)
OKLCHoklch(52.01% 0.121 124.4)
XYZxyz(10.5973, 14.7185, 2.9920)
Luminance0.1472 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7415 #2F1574
analogous
#745F15 #5A7415 #2B7415
triadic
#5A7415 #155A74 #74155A
tetradic
#5A7415 #15745F #2F1574 #74152B
square
#5A7415 #15745F #2F1574 #74152B
split-complementary
#5A7415 #152B74 #5F1574
monochromatic
#141A05 #32400C #5A7415 #82A81E #A9D92B

Accessibility & contrast

On white

5.32
#5A7415 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5A7415 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7415
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7415#FFFFFF#000000##FFFFFF
##5A74151.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#786B1F
Tritanopia (blue-blind)
#5F6E63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a7415;
/* rgb */ color: rgb(90, 116, 21);
/* oklch */ color: oklch(52.0% 0.121 124.4);
Tailwind
colors: {
  custom: {
    50: '#8c9c5c',
    500: '#5a7415',
    950: '#000000',
  },
}
SCSS
$custom: #5a7415;
$custom-light: #8c9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7415",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 21
  },
  "hsl": {
    "h": 76.421,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.12051,
    "h": 124.4
  },
  "luminance": 0.14719
}

Semantic roles & 50–950 ramp

primary
#5A7415
secondary
#593BAA
accent
#3CEC6C
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7415

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

Preview Lab → · Contrast checker → · Palette generator →

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