#5F7B17#5F7B17

#5F7B17 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.2% C 0.126 H 124.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5F7B17
RGBrgb(95, 123, 23)
HSLhsl(77, 68%, 29%)
HSVhsv(77, 81%, 48%)
CMYKcmyk(22.8%, 0%, 81.3%, 51.8%)
CIE-LABlab(47.83, -24.59, 47.09)
CIE-LCHlch(47.83, 53.13, 117.58°)
OKLaboklab(54.19% -0.0717 0.1035)
OKLCHoklch(54.19% 0.126 124.7)
XYZxyz(11.9570, 16.6605, 3.3963)
Luminance0.1666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7B17 #33177B
analogous
#7B6517 #5F7B17 #2D7B17
triadic
#5F7B17 #175F7B #7B175F
tetradic
#5F7B17 #177B65 #33177B #7B172D
square
#5F7B17 #177B65 #33177B #7B172D
split-complementary
#5F7B17 #172D7B #65177B
monochromatic
#141A05 #37470D #5F7B17 #87AF21 #ABD933

Accessibility & contrast

On white

4.85
#5F7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5F7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7B17
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7B17#FFFFFF#000000##FFFFFF
##5F7B171.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7F7121
Tritanopia (blue-blind)
#647569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f7b17;
/* rgb */ color: rgb(95, 123, 23);
/* oklch */ color: oklch(54.2% 0.126 124.7);
Tailwind
colors: {
  custom: {
    50: '#90a15e',
    500: '#5f7b17',
    950: '#000000',
  },
}
SCSS
$custom: #5f7b17;
$custom-light: #90a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7b17",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 76.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54192,
    "c": 0.12591,
    "h": 124.7
  },
  "luminance": 0.16661
}

Semantic roles & 50–950 ramp

primary
#5F7B17
secondary
#5E3EB0
accent
#3CEB6D
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0F05
muted
#7E7E79

Preview Lab

Preview with #5F7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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