#5F7C17#5F7C17

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

Color values

HEX#5F7C17
RGBrgb(95, 124, 23)
HSLhsl(77, 69%, 29%)
HSVhsv(77, 81%, 49%)
CMYKcmyk(23.4%, 0%, 81.5%, 51.4%)
CIE-LABlab(48.15, -25.09, 47.38)
CIE-LCHlch(48.15, 53.62, 117.90°)
OKLaboklab(54.45% -0.0731 0.1041)
OKLCHoklch(54.45% 0.127 125.1)
XYZxyz(12.0817, 16.9099, 3.4379)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7C17 #34177C
analogous
#7C6717 #5F7C17 #2D7C17
triadic
#5F7C17 #175F7C #7C175F
tetradic
#5F7C17 #177C67 #34177C #7C172D
square
#5F7C17 #177C67 #34177C #7C172D
split-complementary
#5F7C17 #172D7C #67177C
monochromatic
#141A05 #37480D #5F7C17 #87B021 #AAD934

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7C17#FFFFFF#000000##FFFFFF
##5F7C171.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)
#7F7222
Tritanopia (blue-blind)
#647669
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f7c17;
/* rgb */ color: rgb(95, 124, 23);
/* oklch */ color: oklch(54.4% 0.127 125.1);
Tailwind
colors: {
  custom: {
    50: '#90a25e',
    500: '#5f7c17',
    950: '#000000',
  },
}
SCSS
$custom: #5f7c17;
$custom-light: #90a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7c17",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 77.228,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54448,
    "c": 0.12719,
    "h": 125.1
  },
  "luminance": 0.1691
}

Semantic roles & 50–950 ramp

primary
#5F7C17
secondary
#5F3EB1
accent
#3CEC6F
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0F05
muted
#7E7E79

Preview Lab

Preview with #5F7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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