#5B8F23#5B8F23

#5B8F23 is a mid, vivid yellow-green. Relative luminance 0.220; OKLCH L 59.2% C 0.147 H 132.2°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5B8F23
RGBrgb(91, 143, 35)
HSLhsl(89, 61%, 35%)
HSVhsv(89, 76%, 56%)
CMYKcmyk(36.4%, 0%, 75.5%, 43.9%)
CIE-LABlab(54.02, -35.00, 48.75)
CIE-LCHlch(54.02, 60.01, 125.68°)
OKLaboklab(59.18% -0.0988 0.1091)
OKLCHoklch(59.18% 0.147 132.2)
XYZxyz(14.4400, 21.9898, 5.0734)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8F23 #57238F
analogous
#8F8D23 #5B8F23 #258F23
triadic
#5B8F23 #235B8F #8F235B
tetradic
#5B8F23 #238F8D #57238F #8F2325
square
#5B8F23 #238F8D #57238F #8F2325
split-complementary
#5B8F23 #23258F #8D238F
monochromatic
#1C2D0B #3C5E17 #5B8F23 #7AC02F #99D657

Accessibility & contrast

On white

3.89
#5B8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#5B8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8F23
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8F23#FFFFFF#000000##000000
##5B8F231.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b8f23;
/* rgb */ color: rgb(91, 143, 35);
/* oklch */ color: oklch(59.2% 0.147 132.2);
Tailwind
colors: {
  custom: {
    50: '#8eb066',
    500: '#5b8f23',
    950: '#000000',
  },
}
SCSS
$custom: #5b8f23;
$custom-light: #8eb066;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8f23",
  "rgb": {
    "r": 91,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 88.889,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59182,
    "c": 0.14715,
    "h": 132.2
  },
  "luminance": 0.2199
}

Semantic roles & 50–950 ramp

primary
#5B8F23
secondary
#8554BA
accent
#44E491
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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