#5F8F18#5F8F18

#5F8F18 is a mid, vivid yellow-green. Relative luminance 0.221; OKLCH L 59.4% C 0.151 H 130.2°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5F8F18
RGBrgb(95, 143, 24)
HSLhsl(84, 71%, 33%)
HSVhsv(84, 83%, 56%)
CMYKcmyk(33.6%, 0%, 83.2%, 43.9%)
CIE-LABlab(54.18, -34.07, 52.56)
CIE-LCHlch(54.18, 62.63, 122.95°)
OKLaboklab(59.36% -0.0973 0.1152)
OKLCHoklch(59.36% 0.151 130.2)
XYZxyz(14.7066, 22.1433, 4.3632)
Luminance0.2214 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8F18 #48188F
analogous
#8F8318 #5F8F18 #238F18
triadic
#5F8F18 #185F8F #8F185F
tetradic
#5F8F18 #188F83 #48188F #8F1823
square
#5F8F18 #188F83 #48188F #8F1823
split-complementary
#5F8F18 #18238F #83188F
monochromatic
#192606 #3C5B0F #5F8F18 #82C321 #A0DF42

Accessibility & contrast

On white

3.87
#5F8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5F8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8F18
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8F18#FFFFFF#000000##000000
##5F8F181.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#62887A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f8f18;
/* rgb */ color: rgb(95, 143, 24);
/* oklch */ color: oklch(59.4% 0.151 130.2);
Tailwind
colors: {
  custom: {
    50: '#91b061',
    500: '#5f8f18',
    950: '#000000',
  },
}
SCSS
$custom: #5f8f18;
$custom-light: #91b061;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8f18",
  "rgb": {
    "r": 95,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 84.202,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59355,
    "c": 0.15081,
    "h": 130.2
  },
  "luminance": 0.22144
}

Semantic roles & 50–950 ramp

primary
#5F8F18
secondary
#7543C0
accent
#3AEE82
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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