#5A7218#5A7218

#5A7218 is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.5% C 0.116 H 123.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A7218
RGBrgb(90, 114, 24)
HSLhsl(76, 65%, 27%)
HSVhsv(76, 79%, 45%)
CMYKcmyk(21.1%, 0%, 78.9%, 55.3%)
CIE-LABlab(44.62, -22.17, 43.64)
CIE-LCHlch(44.62, 48.95, 116.93°)
OKLaboklab(51.51% -0.0647 0.0965)
OKLCHoklch(51.51% 0.116 123.8)
XYZxyz(10.3987, 14.2742, 3.0713)
Luminance0.1427 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7218 #301872
analogous
#725D18 #5A7218 #2D7218
triadic
#5A7218 #185A72 #72185A
tetradic
#5A7218 #18725D #301872 #72182D
square
#5A7218 #18725D #301872 #72182D
split-complementary
#5A7218 #182D72 #5D1872
monochromatic
#141905 #323F0D #5A7218 #82A523 #A8D431

Accessibility & contrast

On white

5.45
#5A7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5A7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7218
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7218#FFFFFF#000000##FFFFFF
##5A72181.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A04
Deuteranopia (green-blind)
#766921
Tritanopia (blue-blind)
#5F6C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a7218;
/* rgb */ color: rgb(90, 114, 24);
/* oklch */ color: oklch(51.5% 0.116 123.8);
Tailwind
colors: {
  custom: {
    50: '#8c9a5d',
    500: '#5a7218',
    950: '#000000',
  },
}
SCSS
$custom: #5a7218;
$custom-light: #8c9a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7218",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 76,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.51508,
    "c": 0.11622,
    "h": 123.8
  },
  "luminance": 0.14274
}

Semantic roles & 50–950 ramp

primary
#5A7218
secondary
#5A3EA7
accent
#40E86D
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7218

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

Preview Lab → · Contrast checker → · Palette generator →

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