#5F8D23#5F8D23

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

Color values

HEX#5F8D23
RGBrgb(95, 141, 35)
HSLhsl(86, 60%, 35%)
HSVhsv(86, 75%, 55%)
CMYKcmyk(32.6%, 0%, 75.2%, 44.7%)
CIE-LABlab(53.60, -32.56, 48.42)
CIE-LCHlch(53.60, 58.35, 123.92°)
OKLaboklab(58.9% -0.0924 0.1083)
OKLCHoklch(58.9% 0.142 130.5)
XYZxyz(14.5475, 21.6035, 4.9932)
Luminance0.2160 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D23 #51238D
analogous
#8D8623 #5F8D23 #2A8D23
triadic
#5F8D23 #235F8D #8D235F
tetradic
#5F8D23 #238D86 #51238D #8D232A
square
#5F8D23 #238D86 #51238D #8D232A
split-complementary
#5F8D23 #232A8D #86238D
monochromatic
#1D2B0B #3E5C17 #5F8D23 #80BE2F #9ED555

Accessibility & contrast

On white

3.95
#5F8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5F8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D23
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D23#FFFFFF#000000##000000
##5F8D231.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820E
Deuteranopia (green-blind)
#8D7F2D
Tritanopia (blue-blind)
#618779
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d23;
/* rgb */ color: rgb(95, 141, 35);
/* oklch */ color: oklch(58.9% 0.142 130.5);
Tailwind
colors: {
  custom: {
    50: '#90ae66',
    500: '#5f8d23',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d23;
$custom-light: #90ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d23",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 86.038,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58905,
    "c": 0.14238,
    "h": 130.5
  },
  "luminance": 0.21604
}

Semantic roles & 50–950 ramp

primary
#5F8D23
secondary
#7F53B9
accent
#44E389
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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