#5A8522#5A8522

#5A8522 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.5% C 0.135 H 130.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5A8522
RGBrgb(90, 133, 34)
HSLhsl(86, 59%, 33%)
HSVhsv(86, 74%, 52%)
CMYKcmyk(32.3%, 0%, 74.4%, 47.8%)
CIE-LABlab(50.76, -30.86, 45.89)
CIE-LCHlch(50.76, 55.30, 123.92°)
OKLaboklab(56.51% -0.0876 0.103)
OKLCHoklch(56.51% 0.135 130.4)
XYZxyz(12.8926, 19.0638, 4.5135)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8522 #4D2285
analogous
#857E22 #5A8522 #288522
triadic
#5A8522 #225A85 #85225A
tetradic
#5A8522 #22857E #4D2285 #852228
square
#5A8522 #22857E #4D2285 #852228
split-complementary
#5A8522 #222885 #7E2285
monochromatic
#182409 #395416 #5A8522 #7BB62E #99D24F

Accessibility & contrast

On white

4.36
#5A8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5A8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8522
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8522#FFFFFF#000000##000000
##5A85221.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B10
Deuteranopia (green-blind)
#85782B
Tritanopia (blue-blind)
#5C7F72
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a8522;
/* rgb */ color: rgb(90, 133, 34);
/* oklch */ color: oklch(56.5% 0.135 130.4);
Tailwind
colors: {
  custom: {
    50: '#8ca964',
    500: '#5a8522',
    950: '#000000',
  },
}
SCSS
$custom: #5a8522;
$custom-light: #8ca964;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8522",
  "rgb": {
    "r": 90,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 86.061,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56511,
    "c": 0.13516,
    "h": 130.4
  },
  "luminance": 0.19064
}

Semantic roles & 50–950 ramp

primary
#5A8522
secondary
#7B4DB6
accent
#45E28A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A8522

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

Preview Lab → · Contrast checker → · Palette generator →

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