#5A7515#5A7515

#5A7515 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.3% C 0.122 H 124.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5A7515
RGBrgb(90, 117, 21)
HSLhsl(77, 70%, 27%)
HSVhsv(77, 82%, 46%)
CMYKcmyk(23.1%, 0%, 82.1%, 54.1%)
CIE-LABlab(45.57, -23.85, 45.54)
CIE-LCHlch(45.57, 51.40, 117.64°)
OKLaboklab(52.27% -0.0695 0.1)
OKLCHoklch(52.27% 0.122 124.8)
XYZxyz(10.7132, 14.9503, 3.0306)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7515 #301575
analogous
#756015 #5A7515 #2A7515
triadic
#5A7515 #155A75 #75155A
tetradic
#5A7515 #157560 #301575 #75152A
square
#5A7515 #157560 #301575 #75152A
split-complementary
#5A7515 #152A75 #601575
monochromatic
#141A05 #32410C #5A7515 #82A91E #A8D92B

Accessibility & contrast

On white

5.26
#5A7515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5A7515 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7515
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7515#FFFFFF#000000##FFFFFF
##5A75151.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#786C1F
Tritanopia (blue-blind)
#5F6F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a7515;
/* rgb */ color: rgb(90, 117, 21);
/* oklch */ color: oklch(52.3% 0.122 124.8);
Tailwind
colors: {
  custom: {
    50: '#8c9c5c',
    500: '#5a7515',
    950: '#000000',
  },
}
SCSS
$custom: #5a7515;
$custom-light: #8c9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7515",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 21
  },
  "hsl": {
    "h": 76.875,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.52266,
    "c": 0.1218,
    "h": 124.8
  },
  "luminance": 0.1495
}

Semantic roles & 50–950 ramp

primary
#5A7515
secondary
#5A3BAB
accent
#3BEC6D
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7515

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

Preview Lab → · Contrast checker → · Palette generator →

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