#5B8D23#5B8D23

#5B8D23 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.7% C 0.145 H 131.8°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5B8D23
RGBrgb(91, 141, 35)
HSLhsl(88, 60%, 35%)
HSVhsv(88, 75%, 55%)
CMYKcmyk(35.5%, 0%, 75.2%, 44.7%)
CIE-LABlab(53.38, -34.10, 48.12)
CIE-LCHlch(53.38, 58.98, 125.32°)
OKLaboklab(58.66% -0.0963 0.1078)
OKLCHoklch(58.66% 0.145 131.8)
XYZxyz(14.1425, 21.3947, 4.9742)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D23 #55238D
analogous
#8D8A23 #5B8D23 #268D23
triadic
#5B8D23 #235B8D #8D235B
tetradic
#5B8D23 #238D8A #55238D #8D2326
square
#5B8D23 #238D8A #55238D #8D2326
split-complementary
#5B8D23 #23268D #8A238D
monochromatic
#1C2B0B #3B5C17 #5B8D23 #7BBE2F #99D555

Accessibility & contrast

On white

3.98
#5B8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#5B8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8D23
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8D23#FFFFFF#000000##000000
##5B8D231.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820E
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#5C8779
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b8d23;
/* rgb */ color: rgb(91, 141, 35);
/* oklch */ color: oklch(58.7% 0.145 131.8);
Tailwind
colors: {
  custom: {
    50: '#8eae66',
    500: '#5b8d23',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d23;
$custom-light: #8eae66;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d23",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 88.302,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58662,
    "c": 0.14455,
    "h": 131.8
  },
  "luminance": 0.21395
}

Semantic roles & 50–950 ramp

primary
#5B8D23
secondary
#8353B9
accent
#44E38F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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