#5F7D15#5F7D15

#5F7D15 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#5F7D15
RGBrgb(95, 125, 21)
HSLhsl(77, 71%, 29%)
HSVhsv(77, 83%, 49%)
CMYKcmyk(24%, 0%, 83.2%, 51%)
CIE-LABlab(48.45, -25.68, 48.28)
CIE-LCHlch(48.45, 54.69, 118.01°)
OKLaboklab(54.69% -0.0748 0.1057)
OKLCHoklch(54.69% 0.129 125.3)
XYZxyz(12.1884, 17.1541, 3.3783)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D15 #33157D
analogous
#7D6715 #5F7D15 #2B7D15
triadic
#5F7D15 #155F7D #7D155F
tetradic
#5F7D15 #157D67 #33157D #7D152B
square
#5F7D15 #157D67 #33157D #7D152B
split-complementary
#5F7D15 #152B7D #67157D
monochromatic
#141A04 #37490C #5F7D15 #87B11E #ABDC30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7D15#FFFFFF#000000##FFFFFF
##5F7D151.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)
#807320
Tritanopia (blue-blind)
#64776A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d15;
/* rgb */ color: rgb(95, 125, 21);
/* oklch */ color: oklch(54.7% 0.129 125.3);
Tailwind
colors: {
  custom: {
    50: '#90a25d',
    500: '#5f7d15',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d15;
$custom-light: #90a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d15",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 77.308,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54694,
    "c": 0.12946,
    "h": 125.3
  },
  "luminance": 0.17154
}

Semantic roles & 50–950 ramp

primary
#5F7D15
secondary
#5E3CB2
accent
#3AEE6E
background
#F9FAF5
surface
#F1F3E9
border
#CBCDC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7D15

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

Preview Lab → · Contrast checker → · Palette generator →

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