#5F8F23#5F8F23

#5F8F23 is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.4% C 0.145 H 130.9°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5F8F23
RGBrgb(95, 143, 35)
HSLhsl(87, 61%, 35%)
HSVhsv(87, 76%, 56%)
CMYKcmyk(33.6%, 0%, 75.5%, 43.9%)
CIE-LABlab(54.24, -33.48, 49.04)
CIE-LCHlch(54.24, 59.38, 124.32°)
OKLaboklab(59.42% -0.0949 0.1096)
OKLCHoklch(59.42% 0.145 130.9)
XYZxyz(14.8450, 22.1986, 5.0924)
Luminance0.2220 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8F23 #53238F
analogous
#8F8923 #5F8F23 #298F23
triadic
#5F8F23 #235F8F #8F235F
tetradic
#5F8F23 #238F89 #53238F #8F2329
square
#5F8F23 #238F89 #53238F #8F2329
split-complementary
#5F8F23 #23298F #89238F
monochromatic
#1E2D0B #3E5E17 #5F8F23 #80C02F #9DD657

Accessibility & contrast

On white

3.86
#5F8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5F8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8F23
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8F23#FFFFFF#000000##000000
##5F8F231.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840D
Deuteranopia (green-blind)
#8F802D
Tritanopia (blue-blind)
#61897A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f8f23;
/* rgb */ color: rgb(95, 143, 35);
/* oklch */ color: oklch(59.4% 0.145 130.9);
Tailwind
colors: {
  custom: {
    50: '#91b066',
    500: '#5f8f23',
    950: '#000000',
  },
}
SCSS
$custom: #5f8f23;
$custom-light: #91b066;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8f23",
  "rgb": {
    "r": 95,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 86.667,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59421,
    "c": 0.145,
    "h": 130.9
  },
  "luminance": 0.22199
}

Semantic roles & 50–950 ramp

primary
#5F8F23
secondary
#8154BA
accent
#44E48B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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