#5F7C16#5F7C16

#5F7C16 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.4% C 0.128 H 125.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5F7C16
RGBrgb(95, 124, 22)
HSLhsl(77, 70%, 29%)
HSVhsv(77, 82%, 49%)
CMYKcmyk(23.4%, 0%, 82.3%, 51.4%)
CIE-LABlab(48.14, -25.14, 47.69)
CIE-LCHlch(48.14, 53.91, 117.79°)
OKLaboklab(54.44% -0.0733 0.1046)
OKLCHoklch(54.44% 0.128 125)
XYZxyz(12.0719, 16.9060, 3.3861)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7C16 #33167C
analogous
#7C6616 #5F7C16 #2C7C16
triadic
#5F7C16 #165F7C #7C165F
tetradic
#5F7C16 #167C66 #33167C #7C162C
square
#5F7C16 #167C66 #33167C #7C162C
split-complementary
#5F7C16 #162C7C #66167C
monochromatic
#141A05 #37480D #5F7C16 #87B01F #ABDB32

Accessibility & contrast

On white

4.79
#5F7C16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5F7C16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7C16
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7C16#FFFFFF#000000##FFFFFF
##5F7C161.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7F7221
Tritanopia (blue-blind)
#647669
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f7c16;
/* rgb */ color: rgb(95, 124, 22);
/* oklch */ color: oklch(54.4% 0.128 125.0);
Tailwind
colors: {
  custom: {
    50: '#90a25d',
    500: '#5f7c16',
    950: '#000000',
  },
}
SCSS
$custom: #5f7c16;
$custom-light: #90a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7c16",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 77.059,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54443,
    "c": 0.1277,
    "h": 125
  },
  "luminance": 0.16906
}

Semantic roles & 50–950 ramp

primary
#5F7C16
secondary
#5E3DB1
accent
#3BED6E
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0F05
muted
#7E7E79

Preview Lab

Preview with #5F7C16

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

Preview Lab → · Contrast checker → · Palette generator →

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