#5A8A23#5A8A23

#5A8A23 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.8% C 0.141 H 131.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5A8A23
RGBrgb(90, 138, 35)
HSLhsl(88, 60%, 34%)
HSVhsv(88, 75%, 54%)
CMYKcmyk(34.8%, 0%, 74.6%, 45.9%)
CIE-LABlab(52.37, -33.11, 47.10)
CIE-LCHlch(52.37, 57.58, 125.10°)
OKLaboklab(57.82% -0.0936 0.1056)
OKLCHoklch(57.82% 0.141 131.5)
XYZxyz(13.6082, 20.4715, 4.8242)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A23 #53238A
analogous
#8A8723 #5A8A23 #278A23
triadic
#5A8A23 #235A8A #8A235A
tetradic
#5A8A23 #238A87 #53238A #8A2327
square
#5A8A23 #238A87 #53238A #8A2327
split-complementary
#5A8A23 #23278A #87238A
monochromatic
#1A280A #3A5917 #5A8A23 #7ABB2F #98D454

Accessibility & contrast

On white

4.12
#5A8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5A8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A23
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A23#FFFFFF#000000##000000
##5A8A231.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F10
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#5C8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a23;
/* rgb */ color: rgb(90, 138, 35);
/* oklch */ color: oklch(57.8% 0.141 131.5);
Tailwind
colors: {
  custom: {
    50: '#8dac65',
    500: '#5a8a23',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a23;
$custom-light: #8dac65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a23",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 87.961,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57821,
    "c": 0.14114,
    "h": 131.5
  },
  "luminance": 0.20472
}

Semantic roles & 50–950 ramp

primary
#5A8A23
secondary
#8151B7
accent
#45E38F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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