#5F7816#5F7816

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

Color values

HEX#5F7816
RGBrgb(95, 120, 22)
HSLhsl(75, 69%, 28%)
HSVhsv(75, 82%, 47%)
CMYKcmyk(20.8%, 0%, 81.7%, 52.9%)
CIE-LABlab(46.87, -23.13, 46.54)
CIE-LCHlch(46.87, 51.97, 116.43°)
OKLaboklab(53.42% -0.0678 0.1022)
OKLCHoklch(53.42% 0.123 123.6)
XYZxyz(11.5808, 15.9237, 3.2224)
Luminance0.1592 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7816 #2F1678
analogous
#786016 #5F7816 #2E7816
triadic
#5F7816 #165F78 #78165F
tetradic
#5F7816 #167860 #2F1678 #78162E
square
#5F7816 #167860 #2F1678 #78162E
split-complementary
#5F7816 #162E78 #601678
monochromatic
#141A05 #36440D #5F7816 #88AC1F #AED92F

Accessibility & contrast

On white

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

On black

4.18
#5F7816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F7816#FFFFFF#000000##FFFFFF
##5F78161.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f7816;
/* rgb */ color: rgb(95, 120, 22);
/* oklch */ color: oklch(53.4% 0.123 123.6);
Tailwind
colors: {
  custom: {
    50: '#909f5d',
    500: '#5f7816',
    950: '#000000',
  },
}
SCSS
$custom: #5f7816;
$custom-light: #909f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7816",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 75.306,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.53417,
    "c": 0.1226,
    "h": 123.6
  },
  "luminance": 0.15924
}

Semantic roles & 50–950 ramp

primary
#5F7816
secondary
#593CAD
accent
#3CEC69
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7816

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

Preview Lab → · Contrast checker → · Palette generator →

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