#5A7318#5A7318

#5A7318 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.8% C 0.118 H 124.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5A7318
RGBrgb(90, 115, 24)
HSLhsl(76, 65%, 27%)
HSVhsv(76, 79%, 45%)
CMYKcmyk(21.7%, 0%, 79.1%, 54.9%)
CIE-LABlab(44.94, -22.68, 43.94)
CIE-LCHlch(44.94, 49.45, 117.30°)
OKLaboklab(51.77% -0.0661 0.0972)
OKLCHoklch(51.77% 0.118 124.2)
XYZxyz(10.5122, 14.5010, 3.1091)
Luminance0.1450 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7318 #311873
analogous
#735F18 #5A7318 #2C7318
triadic
#5A7318 #185A73 #73185A
tetradic
#5A7318 #18735F #311873 #73182C
square
#5A7318 #18735F #311873 #73182C
split-complementary
#5A7318 #182C73 #5F1873
monochromatic
#141905 #32400D #5A7318 #82A623 #A7D431

Accessibility & contrast

On white

5.38
#5A7318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5A7318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7318
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7318#FFFFFF#000000##FFFFFF
##5A73181.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B03
Deuteranopia (green-blind)
#776A21
Tritanopia (blue-blind)
#5F6D62
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a7318;
/* rgb */ color: rgb(90, 115, 24);
/* oklch */ color: oklch(51.8% 0.118 124.2);
Tailwind
colors: {
  custom: {
    50: '#8c9b5d',
    500: '#5a7318',
    950: '#000000',
  },
}
SCSS
$custom: #5a7318;
$custom-light: #8c9b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7318",
  "rgb": {
    "r": 90,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 76.484,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.51767,
    "c": 0.11753,
    "h": 124.2
  },
  "luminance": 0.14501
}

Semantic roles & 50–950 ramp

primary
#5A7318
secondary
#5C3FA8
accent
#3FE86E
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7318

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

Preview Lab → · Contrast checker → · Palette generator →

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