#5F7F17#5F7F17

#5F7F17 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.131 H 126.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5F7F17
RGBrgb(95, 127, 23)
HSLhsl(78, 69%, 29%)
HSVhsv(78, 82%, 50%)
CMYKcmyk(25.2%, 0%, 81.9%, 50.2%)
CIE-LABlab(49.10, -26.57, 48.25)
CIE-LCHlch(49.10, 55.09, 118.84°)
OKLaboklab(55.22% -0.0771 0.106)
OKLCHoklch(55.22% 0.131 126)
XYZxyz(12.4634, 17.6733, 3.5651)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7F17 #37177F
analogous
#7F6B17 #5F7F17 #2B7F17
triadic
#5F7F17 #175F7F #7F175F
tetradic
#5F7F17 #177F6B #37177F #7F172B
square
#5F7F17 #177F6B #37177F #7F172B
split-complementary
#5F7F17 #172B7F #6B177F
monochromatic
#131A05 #384B0E #5F7F17 #86B320 #A8DB36

Accessibility & contrast

On white

4.63
#5F7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5F7F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7F17
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7F17#FFFFFF#000000##FFFFFF
##5F7F171.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#827422
Tritanopia (blue-blind)
#63796C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5f7f17;
/* rgb */ color: rgb(95, 127, 23);
/* oklch */ color: oklch(55.2% 0.131 126.0);
Tailwind
colors: {
  custom: {
    50: '#90a45e',
    500: '#5f7f17',
    950: '#000000',
  },
}
SCSS
$custom: #5f7f17;
$custom-light: #90a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7f17",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 78.462,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5522,
    "c": 0.13103,
    "h": 126
  },
  "luminance": 0.17674
}

Semantic roles & 50–950 ramp

primary
#5F7F17
secondary
#623EB4
accent
#3CEC72
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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