#5D8A23#5D8A23

#5D8A23 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.0% C 0.140 H 130.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5D8A23
RGBrgb(93, 138, 35)
HSLhsl(86, 60%, 34%)
HSVhsv(86, 75%, 54%)
CMYKcmyk(32.6%, 0%, 74.6%, 45.9%)
CIE-LABlab(52.54, -31.95, 47.33)
CIE-LCHlch(52.54, 57.10, 124.02°)
OKLaboklab(58.01% -0.0906 0.1061)
OKLCHoklch(58.01% 0.14 130.5)
XYZxyz(13.9060, 20.6250, 4.8381)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8A23 #50238A
analogous
#8A8423 #5D8A23 #298A23
triadic
#5D8A23 #235D8A #8A235D
tetradic
#5D8A23 #238A84 #50238A #8A2329
square
#5D8A23 #238A84 #50238A #8A2329
split-complementary
#5D8A23 #23298A #84238A
monochromatic
#1B280A #3C5917 #5D8A23 #7EBB2F #9CD454

Accessibility & contrast

On white

4.10
#5D8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5D8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8A23
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8A23#FFFFFF#000000##000000
##5D8A231.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d8a23;
/* rgb */ color: rgb(93, 138, 35);
/* oklch */ color: oklch(58.0% 0.140 130.5);
Tailwind
colors: {
  custom: {
    50: '#8fac65',
    500: '#5d8a23',
    950: '#000000',
  },
}
SCSS
$custom: #5d8a23;
$custom-light: #8fac65;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8a23",
  "rgb": {
    "r": 93,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 86.214,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58005,
    "c": 0.13951,
    "h": 130.5
  },
  "luminance": 0.20625
}

Semantic roles & 50–950 ramp

primary
#5D8A23
secondary
#7E51B7
accent
#45E38A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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