#5A8F23#5A8F23

#5A8F23 is a mid, vivid yellow-green. Relative luminance 0.219; OKLCH L 59.1% C 0.148 H 132.5°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5A8F23
RGBrgb(90, 143, 35)
HSLhsl(89, 61%, 35%)
HSVhsv(89, 76%, 56%)
CMYKcmyk(37.1%, 0%, 75.5%, 43.9%)
CIE-LABlab(53.96, -35.37, 48.68)
CIE-LCHlch(53.96, 60.17, 126.00°)
OKLaboklab(59.12% -0.0997 0.1089)
OKLCHoklch(59.12% 0.148 132.5)
XYZxyz(14.3421, 21.9393, 5.0688)
Luminance0.2194 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8F23 #58238F
analogous
#8F8E23 #5A8F23 #248F23
triadic
#5A8F23 #235A8F #8F235A
tetradic
#5A8F23 #238F8E #58238F #8F2324
square
#5A8F23 #238F8E #58238F #8F2324
split-complementary
#5A8F23 #23248F #8E238F
monochromatic
#1C2D0B #3B5E17 #5A8F23 #79C02F #97D657

Accessibility & contrast

On white

3.90
#5A8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#5A8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8F23
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8F23#FFFFFF#000000##000000
##5A8F231.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840D
Deuteranopia (green-blind)
#8E802E
Tritanopia (blue-blind)
#5B897A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a8f23;
/* rgb */ color: rgb(90, 143, 35);
/* oklch */ color: oklch(59.1% 0.148 132.5);
Tailwind
colors: {
  custom: {
    50: '#8db066',
    500: '#5a8f23',
    950: '#000000',
  },
}
SCSS
$custom: #5a8f23;
$custom-light: #8db066;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8f23",
  "rgb": {
    "r": 90,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 89.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59124,
    "c": 0.1477,
    "h": 132.5
  },
  "luminance": 0.2194
}

Semantic roles & 50–950 ramp

primary
#5A8F23
secondary
#8654BA
accent
#44E492
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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