#5F8518#5F8518

#5F8518 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.8% C 0.138 H 127.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5F8518
RGBrgb(95, 133, 24)
HSLhsl(81, 69%, 31%)
HSVhsv(81, 82%, 52%)
CMYKcmyk(28.6%, 0%, 82%, 47.8%)
CIE-LABlab(51.01, -29.42, 49.69)
CIE-LCHlch(51.01, 57.74, 120.63°)
OKLaboklab(56.77% -0.0848 0.1091)
OKLCHoklch(56.77% 0.138 127.8)
XYZxyz(13.2717, 19.2736, 3.8849)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8518 #3E1885
analogous
#857418 #5F8518 #298518
triadic
#5F8518 #185F85 #85185F
tetradic
#5F8518 #188574 #3E1885 #851829
square
#5F8518 #188574 #3E1885 #851829
split-complementary
#5F8518 #182985 #741885
monochromatic
#151D05 #3A510F #5F8518 #84B921 #A4DC3C

Accessibility & contrast

On white

4.33
#5F8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#5F8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8518
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8518#FFFFFF#000000##000000
##5F85181.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#637F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f8518;
/* rgb */ color: rgb(95, 133, 24);
/* oklch */ color: oklch(56.8% 0.138 127.8);
Tailwind
colors: {
  custom: {
    50: '#90a860',
    500: '#5f8518',
    950: '#000000',
  },
}
SCSS
$custom: #5f8518;
$custom-light: #90a860;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8518",
  "rgb": {
    "r": 95,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 80.917,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56771,
    "c": 0.13818,
    "h": 127.8
  },
  "luminance": 0.19274
}

Semantic roles & 50–950 ramp

primary
#5F8518
secondary
#6A40B9
accent
#3CEC79
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8518

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

Preview Lab → · Contrast checker → · Palette generator →

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