#5A9526#5A9526

#5A9526 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 60.7% C 0.154 H 133.7°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5A9526
RGBrgb(90, 149, 38)
HSLhsl(92, 59%, 37%)
HSVhsv(92, 74%, 58%)
CMYKcmyk(39.6%, 0%, 74.5%, 41.6%)
CIE-LABlab(55.89, -37.82, 49.48)
CIE-LCHlch(55.89, 62.28, 127.39°)
OKLaboklab(60.71% -0.1061 0.1111)
OKLCHoklch(60.71% 0.154 133.7)
XYZxyz(15.3135, 23.8078, 5.6218)
Luminance0.2381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9526 #612695
analogous
#929526 #5A9526 #26952A
triadic
#5A9526 #265A95 #95265A
tetradic
#5A9526 #269295 #612695 #952A26
square
#5A9526 #269295 #612695 #952A26
split-complementary
#5A9526 #2A2695 #952692
monochromatic
#1F330D #3D641A #5A9526 #77C632 #97D65F

Accessibility & contrast

On white

3.64
#5A9526 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#5A9526 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9526
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9526#FFFFFF#000000##000000
##5A95261.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8911
Deuteranopia (green-blind)
#938431
Tritanopia (blue-blind)
#5A8F80
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a9526;
/* rgb */ color: rgb(90, 149, 38);
/* oklch */ color: oklch(60.7% 0.154 133.7);
Tailwind
colors: {
  custom: {
    50: '#8eb468',
    500: '#5a9526',
    950: '#000000',
  },
}
SCSS
$custom: #5a9526;
$custom-light: #8eb468;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9526",
  "rgb": {
    "r": 90,
    "g": 149,
    "b": 38
  },
  "hsl": {
    "h": 91.892,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60709,
    "c": 0.15364,
    "h": 133.7
  },
  "luminance": 0.23808
}

Semantic roles & 50–950 ramp

primary
#5A9526
secondary
#8E5BBB
accent
#45E399
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5A9526

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

Preview Lab → · Contrast checker → · Palette generator →

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