#5F7C15#5F7C15

#5F7C15 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#5F7C15
RGBrgb(95, 124, 21)
HSLhsl(77, 71%, 28%)
HSVhsv(77, 83%, 49%)
CMYKcmyk(23.4%, 0%, 83.1%, 51.4%)
CIE-LABlab(48.14, -25.18, 48.00)
CIE-LCHlch(48.14, 54.20, 117.69°)
OKLaboklab(54.44% -0.0735 0.1051)
OKLCHoklch(54.44% 0.128 125)
XYZxyz(12.0624, 16.9022, 3.3363)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7C15 #32157C
analogous
#7C6515 #5F7C15 #2B7C15
triadic
#5F7C15 #155F7C #7C155F
tetradic
#5F7C15 #157C65 #32157C #7C152B
square
#5F7C15 #157C65 #32157C #7C152B
split-complementary
#5F7C15 #152B7C #65157C
monochromatic
#141A04 #37480C #5F7C15 #87B01E #ABDC30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5f7c15;
/* rgb */ color: rgb(95, 124, 21);
/* oklch */ color: oklch(54.4% 0.128 125.0);
Tailwind
colors: {
  custom: {
    50: '#90a25d',
    500: '#5f7c15',
    950: '#000000',
  },
}
SCSS
$custom: #5f7c15;
$custom-light: #90a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7c15",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 76.893,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54437,
    "c": 0.1282,
    "h": 125
  },
  "luminance": 0.16902
}

Semantic roles & 50–950 ramp

primary
#5F7C15
secondary
#5D3CB1
accent
#3AEE6D
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0F05
muted
#7E7E79

Preview Lab

Preview with #5F7C15

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

Preview Lab → · Contrast checker → · Palette generator →

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