#5F7817#5F7817

#5F7817 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.4% C 0.122 H 123.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5F7817
RGBrgb(95, 120, 23)
HSLhsl(75, 68%, 28%)
HSVhsv(75, 81%, 47%)
CMYKcmyk(20.8%, 0%, 80.8%, 52.9%)
CIE-LABlab(46.88, -23.08, 46.22)
CIE-LCHlch(46.88, 51.66, 116.54°)
OKLaboklab(53.42% -0.0676 0.1017)
OKLCHoklch(53.42% 0.122 123.6)
XYZxyz(11.5906, 15.9276, 3.2742)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7817 #301778
analogous
#786017 #5F7817 #2E7817
triadic
#5F7817 #175F78 #78175F
tetradic
#5F7817 #177860 #301778 #78172E
square
#5F7817 #177860 #301778 #78172E
split-complementary
#5F7817 #172E78 #601778
monochromatic
#141A05 #36450D #5F7817 #88AB21 #ADD832

Accessibility & contrast

On white

5.02
#5F7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5F7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7817
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7817#FFFFFF#000000##FFFFFF
##5F78171.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#647266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f7817;
/* rgb */ color: rgb(95, 120, 23);
/* oklch */ color: oklch(53.4% 0.122 123.6);
Tailwind
colors: {
  custom: {
    50: '#909f5d',
    500: '#5f7817',
    950: '#000000',
  },
}
SCSS
$custom: #5f7817;
$custom-light: #909f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7817",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 75.464,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53423,
    "c": 0.12208,
    "h": 123.6
  },
  "luminance": 0.15928
}

Semantic roles & 50–950 ramp

primary
#5F7817
secondary
#5A3EAD
accent
#3DEB6A
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7817

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

Preview Lab → · Contrast checker → · Palette generator →

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