#5A9923#5A9923

#5A9923 is a mid, vivid yellow-green. Relative luminance 0.251; OKLCH L 61.7% C 0.161 H 134.0°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5A9923
RGBrgb(90, 153, 35)
HSLhsl(92, 63%, 37%)
HSVhsv(92, 77%, 60%)
CMYKcmyk(41.2%, 0%, 77.1%, 40%)
CIE-LABlab(57.15, -39.74, 51.78)
CIE-LCHlch(57.15, 65.27, 127.50°)
OKLaboklab(61.73% -0.1115 0.1154)
OKLCHoklch(61.73% 0.161 134)
XYZxyz(15.9108, 25.0767, 5.5917)
Luminance0.2508 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9923 #622399
analogous
#959923 #5A9923 #239927
triadic
#5A9923 #235A99 #99235A
tetradic
#5A9923 #239599 #622399 #992723
square
#5A9923 #239599 #622399 #992723
split-complementary
#5A9923 #272399 #992395
monochromatic
#1F350C #3D6718 #5A9923 #77CB2E #97DA5D

Accessibility & contrast

On white

3.49
#5A9923 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#5A9923 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9923
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9923#FFFFFF#000000##000000
##5A99231.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C06
Deuteranopia (green-blind)
#97872F
Tritanopia (blue-blind)
#599383
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5a9923;
/* rgb */ color: rgb(90, 153, 35);
/* oklch */ color: oklch(61.7% 0.161 134.0);
Tailwind
colors: {
  custom: {
    50: '#8eb767',
    500: '#5a9923',
    950: '#000000',
  },
}
SCSS
$custom: #5a9923;
$custom-light: #8eb767;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9923",
  "rgb": {
    "r": 90,
    "g": 153,
    "b": 35
  },
  "hsl": {
    "h": 92.034,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61731,
    "c": 0.16052,
    "h": 134
  },
  "luminance": 0.25077
}

Semantic roles & 50–950 ramp

primary
#5A9923
secondary
#8F59BE
accent
#42E699
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9923

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

Preview Lab → · Contrast checker → · Palette generator →

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