#5F7017#5F7017

#5F7017 is a mid, moderate yellow-green. Relative luminance 0.141; OKLCH L 51.4% C 0.112 H 120.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5F7017
RGBrgb(95, 112, 23)
HSLhsl(71, 66%, 26%)
HSVhsv(71, 79%, 44%)
CMYKcmyk(15.2%, 0%, 79.5%, 56.1%)
CIE-LABlab(44.35, -18.95, 43.87)
CIE-LCHlch(44.35, 47.79, 113.36°)
OKLaboklab(51.38% -0.0563 0.0967)
OKLCHoklch(51.38% 0.112 120.2)
XYZxyz(10.6683, 14.0831, 2.9667)
Luminance0.1408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7017 #281770
analogous
#705517 #5F7017 #337017
triadic
#5F7017 #175F70 #70175F
tetradic
#5F7017 #177055 #281770 #701733
square
#5F7017 #177055 #281770 #701733
split-complementary
#5F7017 #173370 #551770
monochromatic
#161905 #343D0D #5F7017 #8AA321 #B4D42D

Accessibility & contrast

On white

5.50
#5F7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5F7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7017
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7017#FFFFFF#000000##FFFFFF
##5F70171.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786903
Deuteranopia (green-blind)
#76691F
Tritanopia (blue-blind)
#656A5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f7017;
/* rgb */ color: rgb(95, 112, 23);
/* oklch */ color: oklch(51.4% 0.112 120.2);
Tailwind
colors: {
  custom: {
    50: '#8f995c',
    500: '#5f7017',
    950: '#000000',
  },
}
SCSS
$custom: #5f7017;
$custom-light: #8f995c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7017",
  "rgb": {
    "r": 95,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 71.461,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51381,
    "c": 0.11187,
    "h": 120.2
  },
  "luminance": 0.14083
}

Semantic roles & 50–950 ramp

primary
#5F7017
secondary
#513DA6
accent
#3FE95F
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F7017

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

Preview Lab → · Contrast checker → · Palette generator →

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