#5A8310#5A8310

#5A8310 is a mid, vivid yellow-green. Relative luminance 0.184; OKLCH L 55.9% C 0.142 H 128.8°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5A8310
RGBrgb(90, 131, 16)
HSLhsl(81, 78%, 29%)
HSVhsv(81, 88%, 51%)
CMYKcmyk(31.3%, 0%, 87.8%, 48.6%)
CIE-LABlab(50.03, -30.84, 50.89)
CIE-LCHlch(50.03, 59.51, 121.22°)
OKLaboklab(55.89% -0.0888 0.1106)
OKLCHoklch(55.89% 0.142 128.8)
XYZxyz(12.4263, 18.4433, 3.3953)
Luminance0.1844 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8310 #391083
analogous
#837310 #5A8310 #218310
triadic
#5A8310 #105A83 #83105A
tetradic
#5A8310 #108373 #391083 #831021
square
#5A8310 #108373 #391083 #831021
split-complementary
#5A8310 #102183 #731083
monochromatic
#131B03 #354C09 #5A8310 #7FBA17 #A2E529

Accessibility & contrast

On white

4.48
#5A8310 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#5A8310 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8310
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8310#FFFFFF#000000##000000
##5A83101.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#84761F
Tritanopia (blue-blind)
#5D7D6F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a8310;
/* rgb */ color: rgb(90, 131, 16);
/* oklch */ color: oklch(55.9% 0.142 128.8);
Tailwind
colors: {
  custom: {
    50: '#8da75c',
    500: '#5a8310',
    950: '#000000',
  },
}
SCSS
$custom: #5a8310;
$custom-light: #8da75c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8310",
  "rgb": {
    "r": 90,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 81.391,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.55886,
    "c": 0.14179,
    "h": 128.8
  },
  "luminance": 0.18444
}

Semantic roles & 50–950 ramp

primary
#5A8310
secondary
#6536B9
accent
#33F578
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5A8310

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

Preview Lab → · Contrast checker → · Palette generator →

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