#5F7D17#5F7D17

#5F7D17 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.128 H 125.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5F7D17
RGBrgb(95, 125, 23)
HSLhsl(78, 69%, 29%)
HSVhsv(78, 82%, 49%)
CMYKcmyk(24%, 0%, 81.6%, 51%)
CIE-LABlab(48.46, -25.59, 47.67)
CIE-LCHlch(48.46, 54.11, 118.22°)
OKLaboklab(54.71% -0.0744 0.1047)
OKLCHoklch(54.71% 0.128 125.4)
XYZxyz(12.2077, 17.1618, 3.4799)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D17 #35177D
analogous
#7D6817 #5F7D17 #2C7D17
triadic
#5F7D17 #175F7D #7D175F
tetradic
#5F7D17 #177D68 #35177D #7D172C
square
#5F7D17 #177D68 #35177D #7D172C
split-complementary
#5F7D17 #172C7D #68177D
monochromatic
#141A05 #38490D #5F7D17 #86B121 #A9DA35

Accessibility & contrast

On white

4.74
#5F7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5F7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D17
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D17#FFFFFF#000000##FFFFFF
##5F7D171.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#64776A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d17;
/* rgb */ color: rgb(95, 125, 23);
/* oklch */ color: oklch(54.7% 0.128 125.4);
Tailwind
colors: {
  custom: {
    50: '#90a25e',
    500: '#5f7d17',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d17;
$custom-light: #90a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d17",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 77.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54705,
    "c": 0.12847,
    "h": 125.4
  },
  "luminance": 0.17162
}

Semantic roles & 50–950 ramp

primary
#5F7D17
secondary
#603EB2
accent
#3CEC70
background
#F9FAF5
surface
#F1F3E9
border
#CBCDC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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