#5A8E23#5A8E23

#5A8E23 is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.146 H 132.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5A8E23
RGBrgb(90, 142, 35)
HSLhsl(89, 60%, 35%)
HSVhsv(89, 75%, 56%)
CMYKcmyk(36.6%, 0%, 75.4%, 44.3%)
CIE-LABlab(53.64, -34.92, 48.36)
CIE-LCHlch(53.64, 59.66, 125.83°)
OKLaboklab(58.86% -0.0985 0.1083)
OKLCHoklch(58.86% 0.146 132.3)
XYZxyz(14.1926, 21.6404, 5.0190)
Luminance0.2164 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8E23 #57238E
analogous
#8E8D23 #5A8E23 #248E23
triadic
#5A8E23 #235A8E #8E235A
tetradic
#5A8E23 #238E8D #57238E #8E2324
square
#5A8E23 #238E8D #57238E #8E2324
split-complementary
#5A8E23 #23248E #8D238E
monochromatic
#1C2C0B #3B5D17 #5A8E23 #79BF2F #97D556

Accessibility & contrast

On white

3.94
#5A8E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5A8E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8E23
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8E23#FFFFFF#000000##000000
##5A8E231.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830E
Deuteranopia (green-blind)
#8D7F2D
Tritanopia (blue-blind)
#5B8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8e23;
/* rgb */ color: rgb(90, 142, 35);
/* oklch */ color: oklch(58.9% 0.146 132.3);
Tailwind
colors: {
  custom: {
    50: '#8daf66',
    500: '#5a8e23',
    950: '#000000',
  },
}
SCSS
$custom: #5a8e23;
$custom-light: #8daf66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8e23",
  "rgb": {
    "r": 90,
    "g": 142,
    "b": 35
  },
  "hsl": {
    "h": 89.159,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58863,
    "c": 0.14639,
    "h": 132.3
  },
  "luminance": 0.21641
}

Semantic roles & 50–950 ramp

primary
#5A8E23
secondary
#8553B9
accent
#44E492
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8E23

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

Preview Lab → · Contrast checker → · Palette generator →

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