#5A7418#5A7418

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

Color values

HEX#5A7418
RGBrgb(90, 116, 24)
HSLhsl(77, 66%, 27%)
HSVhsv(77, 79%, 45%)
CMYKcmyk(22.4%, 0%, 79.3%, 54.5%)
CIE-LABlab(45.26, -23.19, 44.25)
CIE-LCHlch(45.26, 49.95, 117.66°)
OKLaboklab(52.03% -0.0675 0.0978)
OKLCHoklch(52.03% 0.119 124.6)
XYZxyz(10.6268, 14.7303, 3.1473)
Luminance0.1473 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7418 #321874
analogous
#746018 #5A7418 #2C7418
triadic
#5A7418 #185A74 #74185A
tetradic
#5A7418 #187460 #321874 #74182C
square
#5A7418 #187460 #321874 #74182C
split-complementary
#5A7418 #182C74 #601874
monochromatic
#141905 #33410E #5A7418 #81A722 #A7D532

Accessibility & contrast

On white

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

On black

3.95
#5A7418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A7418#FFFFFF#000000##FFFFFF
##5A74181.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C03
Deuteranopia (green-blind)
#776B21
Tritanopia (blue-blind)
#5F6E63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a7418;
/* rgb */ color: rgb(90, 116, 24);
/* oklch */ color: oklch(52.0% 0.119 124.6);
Tailwind
colors: {
  custom: {
    50: '#8c9c5d',
    500: '#5a7418',
    950: '#000000',
  },
}
SCSS
$custom: #5a7418;
$custom-light: #8c9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7418",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 76.957,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.52025,
    "c": 0.11884,
    "h": 124.6
  },
  "luminance": 0.1473
}

Semantic roles & 50–950 ramp

primary
#5A7418
secondary
#5D3FA9
accent
#3FE96F
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7418

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

Preview Lab → · Contrast checker → · Palette generator →

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