#5A9223#5A9223

#5A9223 is a mid, vivid yellow-green. Relative luminance 0.229; OKLCH L 59.9% C 0.152 H 133.0°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5A9223
RGBrgb(90, 146, 35)
HSLhsl(90, 61%, 35%)
HSVhsv(90, 76%, 57%)
CMYKcmyk(38.4%, 0%, 76%, 42.7%)
CIE-LABlab(54.92, -36.70, 49.62)
CIE-LCHlch(54.92, 61.72, 126.49°)
OKLaboklab(59.91% -0.1033 0.1109)
OKLCHoklch(59.91% 0.152 133)
XYZxyz(14.7985, 22.8521, 5.2209)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9223 #5B2392
analogous
#919223 #5A9223 #239223
triadic
#5A9223 #235A92 #92235A
tetradic
#5A9223 #239192 #5B2392 #922323
square
#5A9223 #239192 #5B2392 #922323
split-complementary
#5A9223 #232392 #922391
monochromatic
#1D2F0B #3C6117 #5A9223 #78C32F #97D758

Accessibility & contrast

On white

3.77
#5A9223 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#5A9223 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9223
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9223#FFFFFF#000000##000000
##5A92231.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860B
Deuteranopia (green-blind)
#91822E
Tritanopia (blue-blind)
#5A8C7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a9223;
/* rgb */ color: rgb(90, 146, 35);
/* oklch */ color: oklch(59.9% 0.152 133.0);
Tailwind
colors: {
  custom: {
    50: '#8eb266',
    500: '#5a9223',
    950: '#000000',
  },
}
SCSS
$custom: #5a9223;
$custom-light: #8eb266;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9223",
  "rgb": {
    "r": 90,
    "g": 146,
    "b": 35
  },
  "hsl": {
    "h": 90.27,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59906,
    "c": 0.15158,
    "h": 133
  },
  "luminance": 0.22853
}

Semantic roles & 50–950 ramp

primary
#5A9223
secondary
#8955BB
accent
#43E495
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9223

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

Preview Lab → · Contrast checker → · Palette generator →

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