#4F8F17#4F8F17

#4F8F17 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.5% C 0.160 H 134.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#4F8F17
RGBrgb(79, 143, 23)
HSLhsl(92, 72%, 33%)
HSVhsv(92, 84%, 56%)
CMYKcmyk(44.8%, 0%, 83.9%, 43.9%)
CIE-LABlab(53.35, -39.99, 51.78)
CIE-LCHlch(53.35, 65.42, 127.67°)
OKLaboklab(58.45% -0.1122 0.1138)
OKLCHoklch(58.45% 0.16 134.6)
XYZxyz(13.2013, 21.3683, 4.2393)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8F17 #57178F
analogous
#8B8F17 #4F8F17 #178F1B
triadic
#4F8F17 #174F8F #8F174F
tetradic
#4F8F17 #178B8F #57178F #8F1B17
square
#4F8F17 #178B8F #57178F #8F1B17
split-complementary
#4F8F17 #1B178F #8F178B
monochromatic
#152606 #325A0F #4F8F17 #6CC41F #8BE040

Accessibility & contrast

On white

3.98
#4F8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#4F8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8F17
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8F17#FFFFFF#000000##000000
##4F8F171.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8C7E26
Tritanopia (blue-blind)
#4E8979
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4f8f17;
/* rgb */ color: rgb(79, 143, 23);
/* oklch */ color: oklch(58.5% 0.160 134.6);
Tailwind
colors: {
  custom: {
    50: '#87b060',
    500: '#4f8f17',
    950: '#000000',
  },
}
SCSS
$custom: #4f8f17;
$custom-light: #87b060;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8f17",
  "rgb": {
    "r": 79,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 92,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58454,
    "c": 0.15984,
    "h": 134.6
  },
  "luminance": 0.21369
}

Semantic roles & 50–950 ramp

primary
#4F8F17
secondary
#8541C1
accent
#39EF9A
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4F8F17

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

Preview Lab → · Contrast checker → · Palette generator →

#4F8F17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva