#5A7818#5A7818

#5A7818 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.124 H 126.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A7818
RGBrgb(90, 120, 24)
HSLhsl(79, 67%, 28%)
HSVhsv(79, 80%, 47%)
CMYKcmyk(25%, 0%, 80%, 52.9%)
CIE-LABlab(46.54, -25.19, 45.45)
CIE-LCHlch(46.54, 51.96, 119.00°)
OKLaboklab(53.06% -0.073 0.1003)
OKLCHoklch(53.06% 0.124 126)
XYZxyz(11.0979, 15.6724, 3.3044)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7818 #361878
analogous
#786618 #5A7818 #2A7818
triadic
#5A7818 #185A78 #78185A
tetradic
#5A7818 #187866 #361878 #78182A
square
#5A7818 #187866 #361878 #78182A
split-complementary
#5A7818 #182A78 #661878
monochromatic
#131A05 #34450E #5A7818 #80AB22 #A4D634

Accessibility & contrast

On white

5.08
#5A7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5A7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7818
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7818#FFFFFF#000000##FFFFFF
##5A78181.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F01
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#5E7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a7818;
/* rgb */ color: rgb(90, 120, 24);
/* oklch */ color: oklch(53.1% 0.124 126.0);
Tailwind
colors: {
  custom: {
    50: '#8c9f5e',
    500: '#5a7818',
    950: '#000000',
  },
}
SCSS
$custom: #5a7818;
$custom-light: #8c9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7818",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 78.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53062,
    "c": 0.12406,
    "h": 126
  },
  "luminance": 0.15673
}

Semantic roles & 50–950 ramp

primary
#5A7818
secondary
#613FAD
accent
#3EEA74
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7818

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

Preview Lab → · Contrast checker → · Palette generator →

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