#5F8B23#5F8B23

#5F8B23 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.4% C 0.140 H 130.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F8B23
RGBrgb(95, 139, 35)
HSLhsl(85, 60%, 34%)
HSVhsv(85, 75%, 55%)
CMYKcmyk(31.7%, 0%, 74.8%, 45.5%)
CIE-LABlab(52.97, -31.63, 47.80)
CIE-LCHlch(52.97, 57.32, 123.50°)
OKLaboklab(58.39% -0.0899 0.107)
OKLCHoklch(58.39% 0.14 130)
XYZxyz(14.2552, 21.0190, 4.8958)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B23 #4F238B
analogous
#8B8323 #5F8B23 #2B8B23
triadic
#5F8B23 #235F8B #8B235F
tetradic
#5F8B23 #238B83 #4F238B #8B232B
square
#5F8B23 #238B83 #4F238B #8B232B
split-complementary
#5F8B23 #232B8B #83238B
monochromatic
#1C290A #3E5A17 #5F8B23 #80BC2F #9ED454

Accessibility & contrast

On white

4.04
#5F8B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F8B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B23
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B23#FFFFFF#000000##000000
##5F8B231.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810F
Deuteranopia (green-blind)
#8C7D2D
Tritanopia (blue-blind)
#628577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8b23;
/* rgb */ color: rgb(95, 139, 35);
/* oklch */ color: oklch(58.4% 0.140 130.0);
Tailwind
colors: {
  custom: {
    50: '#90ad65',
    500: '#5f8b23',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b23;
$custom-light: #90ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b23",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 85.385,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58389,
    "c": 0.13975,
    "h": 130
  },
  "luminance": 0.21019
}

Semantic roles & 50–950 ramp

primary
#5F8B23
secondary
#7D52B8
accent
#45E388
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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