#5F8A23#5F8A23

#5F8A23 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.138 H 129.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F8A23
RGBrgb(95, 138, 35)
HSLhsl(85, 60%, 34%)
HSVhsv(85, 75%, 54%)
CMYKcmyk(31.2%, 0%, 74.6%, 45.9%)
CIE-LABlab(52.65, -31.17, 47.48)
CIE-LCHlch(52.65, 56.80, 123.28°)
OKLaboklab(58.13% -0.0886 0.1063)
OKLCHoklch(58.13% 0.138 129.8)
XYZxyz(14.1111, 20.7308, 4.8477)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A23 #4E238A
analogous
#8A8223 #5F8A23 #2B8A23
triadic
#5F8A23 #235F8A #8A235F
tetradic
#5F8A23 #238A82 #4E238A #8A232B
square
#5F8A23 #238A82 #4E238A #8A232B
split-complementary
#5F8A23 #232B8A #82238A
monochromatic
#1C280A #3D5917 #5F8A23 #81BB2F #9ED454

Accessibility & contrast

On white

4.08
#5F8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5F8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A23
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A23#FFFFFF#000000##000000
##5F8A231.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918010
Deuteranopia (green-blind)
#8B7D2D
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a23;
/* rgb */ color: rgb(95, 138, 35);
/* oklch */ color: oklch(58.1% 0.138 129.8);
Tailwind
colors: {
  custom: {
    50: '#90ac65',
    500: '#5f8a23',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a23;
$custom-light: #90ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a23",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 85.049,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58131,
    "c": 0.13844,
    "h": 129.8
  },
  "luminance": 0.20731
}

Semantic roles & 50–950 ramp

primary
#5F8A23
secondary
#7C51B7
accent
#45E387
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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