#5A9628#5A9628

#5A9628 is a mid, vivid yellow-green. Relative luminance 0.241; OKLCH L 61.0% C 0.154 H 134.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5A9628
RGBrgb(90, 150, 40)
HSLhsl(93, 58%, 37%)
HSVhsv(93, 73%, 59%)
CMYKcmyk(40%, 0%, 73.3%, 41.2%)
CIE-LABlab(56.23, -38.12, 49.06)
CIE-LCHlch(56.23, 62.13, 127.84°)
OKLaboklab(60.99% -0.1068 0.1105)
OKLCHoklch(60.99% 0.154 134)
XYZxyz(15.5055, 24.1388, 5.8493)
Luminance0.2414 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9628 #642896
analogous
#919628 #5A9628 #28962D
triadic
#5A9628 #285A96 #96285A
tetradic
#5A9628 #289196 #642896 #962D28
square
#5A9628 #289196 #642896 #962D28
split-complementary
#5A9628 #2D2896 #962891
monochromatic
#20350E #3D661B #5A9628 #77C635 #97D563

Accessibility & contrast

On white

3.60
#5A9628 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#5A9628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9628
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9628#FFFFFF#000000##000000
##5A96281.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A15
Deuteranopia (green-blind)
#948532
Tritanopia (blue-blind)
#5A9081
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a9628;
/* rgb */ color: rgb(90, 150, 40);
/* oklch */ color: oklch(61.0% 0.154 134.0);
Tailwind
colors: {
  custom: {
    50: '#8eb569',
    500: '#5a9628',
    950: '#000000',
  },
}
SCSS
$custom: #5a9628;
$custom-light: #8eb569;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9628",
  "rgb": {
    "r": 90,
    "g": 150,
    "b": 40
  },
  "hsl": {
    "h": 92.727,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60985,
    "c": 0.15368,
    "h": 134
  },
  "luminance": 0.2414
}

Semantic roles & 50–950 ramp

primary
#5A9628
secondary
#915FBB
accent
#47E19B
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5A9628

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

Preview Lab → · Contrast checker → · Palette generator →

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