#5F7917#5F7917

#5F7917 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.7% C 0.123 H 124.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5F7917
RGBrgb(95, 121, 23)
HSLhsl(76, 68%, 28%)
HSVhsv(76, 81%, 47%)
CMYKcmyk(21.5%, 0%, 81%, 52.5%)
CIE-LABlab(47.20, -23.59, 46.51)
CIE-LCHlch(47.20, 52.15, 116.89°)
OKLaboklab(53.68% -0.069 0.1023)
OKLCHoklch(53.68% 0.123 124)
XYZxyz(11.7115, 16.1694, 3.3145)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7917 #311779
analogous
#796217 #5F7917 #2E7917
triadic
#5F7917 #175F79 #79175F
tetradic
#5F7917 #177962 #311779 #79172E
square
#5F7917 #177962 #311779 #79172E
split-complementary
#5F7917 #172E79 #621779
monochromatic
#141A05 #37460D #5F7917 #87AC21 #ACD832

Accessibility & contrast

On white

4.96
#5F7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5F7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7917
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7917#FFFFFF#000000##FFFFFF
##5F79171.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#647367
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f7917;
/* rgb */ color: rgb(95, 121, 23);
/* oklch */ color: oklch(53.7% 0.123 124.0);
Tailwind
colors: {
  custom: {
    50: '#909f5d',
    500: '#5f7917',
    950: '#000000',
  },
}
SCSS
$custom: #5f7917;
$custom-light: #909f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7917",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 75.918,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53679,
    "c": 0.12335,
    "h": 124
  },
  "luminance": 0.1617
}

Semantic roles & 50–950 ramp

primary
#5F7917
secondary
#5C3EAE
accent
#3DEB6B
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7917

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

Preview Lab → · Contrast checker → · Palette generator →

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