#5F7D16#5F7D16

#5F7D16 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.129 H 125.3°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5F7D16
RGBrgb(95, 125, 22)
HSLhsl(77, 70%, 29%)
HSVhsv(77, 82%, 49%)
CMYKcmyk(24%, 0%, 82.4%, 51%)
CIE-LABlab(48.46, -25.63, 47.98)
CIE-LCHlch(48.46, 54.40, 118.11°)
OKLaboklab(54.7% -0.0746 0.1052)
OKLCHoklch(54.7% 0.129 125.3)
XYZxyz(12.1979, 17.1579, 3.4281)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D16 #34167D
analogous
#7D6816 #5F7D16 #2C7D16
triadic
#5F7D16 #165F7D #7D165F
tetradic
#5F7D16 #167D68 #34167D #7D162C
square
#5F7D16 #167D68 #34167D #7D162C
split-complementary
#5F7D16 #162C7D #68167D
monochromatic
#141A05 #37490D #5F7D16 #87B11F #AADB32

Accessibility & contrast

On white

4.74
#5F7D16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5F7D16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D16
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D16#FFFFFF#000000##FFFFFF
##5F7D161.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#807321
Tritanopia (blue-blind)
#64776A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d16;
/* rgb */ color: rgb(95, 125, 22);
/* oklch */ color: oklch(54.7% 0.129 125.3);
Tailwind
colors: {
  custom: {
    50: '#90a25e',
    500: '#5f7d16',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d16;
$custom-light: #90a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d16",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 77.476,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.547,
    "c": 0.12898,
    "h": 125.3
  },
  "luminance": 0.17158
}

Semantic roles & 50–950 ramp

primary
#5F7D16
secondary
#5F3DB2
accent
#3BED6F
background
#F9FAF5
surface
#F1F3E9
border
#CBCDC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7D16

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

Preview Lab → · Contrast checker → · Palette generator →

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