#5F8018#5F8018

#5F8018 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.5% C 0.132 H 126.4°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5F8018
RGBrgb(95, 128, 24)
HSLhsl(79, 68%, 30%)
HSVhsv(79, 81%, 50%)
CMYKcmyk(25.8%, 0%, 81.3%, 49.8%)
CIE-LABlab(49.42, -27.01, 48.23)
CIE-LCHlch(49.42, 55.28, 119.25°)
OKLaboklab(55.48% -0.0782 0.1061)
OKLCHoklch(55.48% 0.132 126.4)
XYZxyz(12.6034, 17.9370, 3.6621)
Luminance0.1794 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8018 #391880
analogous
#806D18 #5F8018 #2B8018
triadic
#5F8018 #185F80 #80185F
tetradic
#5F8018 #18806D #391880 #80182B
square
#5F8018 #18806D #391880 #80182B
split-complementary
#5F8018 #182B80 #6D1880
monochromatic
#131A05 #394C0E #5F8018 #85B422 #A7DA39

Accessibility & contrast

On white

4.58
#5F8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#5F8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8018
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8018#FFFFFF#000000##000000
##5F80181.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#837523
Tritanopia (blue-blind)
#637A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5f8018;
/* rgb */ color: rgb(95, 128, 24);
/* oklch */ color: oklch(55.5% 0.132 126.4);
Tailwind
colors: {
  custom: {
    50: '#90a55f',
    500: '#5f8018',
    950: '#000000',
  },
}
SCSS
$custom: #5f8018;
$custom-light: #90a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8018",
  "rgb": {
    "r": 95,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 79.038,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55483,
    "c": 0.13179,
    "h": 126.4
  },
  "luminance": 0.17937
}

Semantic roles & 50–950 ramp

primary
#5F8018
secondary
#6540B4
accent
#3DEB74
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8018

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

Preview Lab → · Contrast checker → · Palette generator →

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