#5F7717#5F7717

#5F7717 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.2% C 0.121 H 123.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F7717
RGBrgb(95, 119, 23)
HSLhsl(75, 68%, 28%)
HSVhsv(75, 81%, 47%)
CMYKcmyk(20.2%, 0%, 80.7%, 53.3%)
CIE-LABlab(46.56, -22.58, 45.93)
CIE-LCHlch(46.56, 51.18, 116.18°)
OKLaboklab(53.17% -0.0662 0.101)
OKLCHoklch(53.17% 0.121 123.2)
XYZxyz(11.4709, 15.6883, 3.2343)
Luminance0.1569 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7717 #2F1777
analogous
#775F17 #5F7717 #2F7717
triadic
#5F7717 #175F77 #77175F
tetradic
#5F7717 #17775F #2F1777 #77172F
square
#5F7717 #17775F #2F1777 #77172F
split-complementary
#5F7717 #172F77 #5F1777
monochromatic
#141A05 #36440D #5F7717 #88AA21 #AED731

Accessibility & contrast

On white

5.08
#5F7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7717
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7717#FFFFFF#000000##FFFFFF
##5F77171.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#647165
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f7717;
/* rgb */ color: rgb(95, 119, 23);
/* oklch */ color: oklch(53.2% 0.121 123.2);
Tailwind
colors: {
  custom: {
    50: '#909e5d',
    500: '#5f7717',
    950: '#000000',
  },
}
SCSS
$custom: #5f7717;
$custom-light: #909e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7717",
  "rgb": {
    "r": 95,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 75,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.53167,
    "c": 0.12079,
    "h": 123.2
  },
  "luminance": 0.15688
}

Semantic roles & 50–950 ramp

primary
#5F7717
secondary
#593EAC
accent
#3DEA69
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7717

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

Preview Lab → · Contrast checker → · Palette generator →

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