#5A7518#5A7518

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

Color values

HEX#5A7518
RGBrgb(90, 117, 24)
HSLhsl(77, 66%, 28%)
HSVhsv(77, 79%, 46%)
CMYKcmyk(23.1%, 0%, 79.5%, 54.1%)
CIE-LABlab(45.58, -23.69, 44.55)
CIE-LCHlch(45.58, 50.46, 118.01°)
OKLaboklab(52.28% -0.0689 0.0985)
OKLCHoklch(52.28% 0.12 125)
XYZxyz(10.7427, 14.9621, 3.1860)
Luminance0.1496 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7518 #331875
analogous
#756118 #5A7518 #2C7518
triadic
#5A7518 #185A75 #75185A
tetradic
#5A7518 #187561 #331875 #75182C
square
#5A7518 #187561 #331875 #75182C
split-complementary
#5A7518 #182C75 #611875
monochromatic
#141905 #33420E #5A7518 #81A822 #A6D532

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7518#FFFFFF#000000##FFFFFF
##5A75181.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)
#7C6D02
Deuteranopia (green-blind)
#786C21
Tritanopia (blue-blind)
#5E6F64
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a7518;
/* rgb */ color: rgb(90, 117, 24);
/* oklch */ color: oklch(52.3% 0.120 125.0);
Tailwind
colors: {
  custom: {
    50: '#8c9c5d',
    500: '#5a7518',
    950: '#000000',
  },
}
SCSS
$custom: #5a7518;
$custom-light: #8c9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7518",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 77.419,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.52284,
    "c": 0.12015,
    "h": 125
  },
  "luminance": 0.14962
}

Semantic roles & 50–950 ramp

primary
#5A7518
secondary
#5E3FAA
accent
#3FE970
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7518

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

Preview Lab → · Contrast checker → · Palette generator →

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