#5F8017#5F8017

#5F8017 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#5F8017
RGBrgb(95, 128, 23)
HSLhsl(79, 70%, 30%)
HSVhsv(79, 82%, 50%)
CMYKcmyk(25.8%, 0%, 82%, 49.8%)
CIE-LABlab(49.41, -27.06, 48.54)
CIE-LCHlch(49.41, 55.58, 119.14°)
OKLaboklab(55.48% -0.0784 0.1066)
OKLCHoklch(55.48% 0.132 126.4)
XYZxyz(12.5932, 17.9329, 3.6084)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8017 #381780
analogous
#806D17 #5F8017 #2B8017
triadic
#5F8017 #175F80 #80175F
tetradic
#5F8017 #17806D #381780 #80172B
square
#5F8017 #17806D #381780 #80172B
split-complementary
#5F8017 #172B80 #6D1780
monochromatic
#131A05 #384C0E #5F8017 #86B420 #A7DB36

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8017#FFFFFF#000000##000000
##5F80171.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)
#837522
Tritanopia (blue-blind)
#637A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5f8017;
/* rgb */ color: rgb(95, 128, 23);
/* oklch */ color: oklch(55.5% 0.132 126.4);
Tailwind
colors: {
  custom: {
    50: '#90a55e',
    500: '#5f8017',
    950: '#000000',
  },
}
SCSS
$custom: #5f8017;
$custom-light: #90a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8017",
  "rgb": {
    "r": 95,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 78.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55477,
    "c": 0.13231,
    "h": 126.4
  },
  "luminance": 0.17933
}

Semantic roles & 50–950 ramp

primary
#5F8017
secondary
#633EB4
accent
#3BEC73
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8017

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

Preview Lab → · Contrast checker → · Palette generator →

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