#5A7618#5A7618

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

Color values

HEX#5A7618
RGBrgb(90, 118, 24)
HSLhsl(78, 66%, 28%)
HSVhsv(78, 80%, 46%)
CMYKcmyk(23.7%, 0%, 79.7%, 53.7%)
CIE-LABlab(45.90, -24.20, 44.85)
CIE-LCHlch(45.90, 50.96, 118.35°)
OKLaboklab(52.54% -0.0702 0.0991)
OKLCHoklch(52.54% 0.121 125.3)
XYZxyz(10.8598, 15.1963, 3.2250)
Luminance0.1520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7618 #341876
analogous
#766318 #5A7618 #2B7618
triadic
#5A7618 #185A76 #76185A
tetradic
#5A7618 #187663 #341876 #76182B
square
#5A7618 #187663 #341876 #76182B
split-complementary
#5A7618 #182B76 #631876
monochromatic
#131905 #33430E #5A7618 #81A922 #A5D533

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7618#FFFFFF#000000##FFFFFF
##5A76181.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)
#7D6E02
Deuteranopia (green-blind)
#796C21
Tritanopia (blue-blind)
#5E7064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7618;
/* rgb */ color: rgb(90, 118, 24);
/* oklch */ color: oklch(52.5% 0.121 125.3);
Tailwind
colors: {
  custom: {
    50: '#8c9d5d',
    500: '#5a7618',
    950: '#000000',
  },
}
SCSS
$custom: #5a7618;
$custom-light: #8c9d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7618",
  "rgb": {
    "r": 90,
    "g": 118,
    "b": 24
  },
  "hsl": {
    "h": 77.872,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52543,
    "c": 0.12145,
    "h": 125.3
  },
  "luminance": 0.15196
}

Semantic roles & 50–950 ramp

primary
#5A7618
secondary
#5F3FAB
accent
#3FE971
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7618

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

Preview Lab → · Contrast checker → · Palette generator →

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