#4F8D17#4F8D17

#4F8D17 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.9% C 0.157 H 134.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4F8D17
RGBrgb(79, 141, 23)
HSLhsl(92, 72%, 32%)
HSVhsv(92, 84%, 55%)
CMYKcmyk(44%, 0%, 83.7%, 44.7%)
CIE-LABlab(52.70, -39.14, 51.20)
CIE-LCHlch(52.70, 64.45, 127.40°)
OKLaboklab(57.92% -0.11 0.1126)
OKLCHoklch(57.92% 0.157 134.3)
XYZxyz(12.9037, 20.7732, 4.1401)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8D17 #55178D
analogous
#8A8D17 #4F8D17 #178D1A
triadic
#4F8D17 #174F8D #8D174F
tetradic
#4F8D17 #178A8D #55178D #8D1A17
square
#4F8D17 #178A8D #55178D #8D1A17
split-complementary
#4F8D17 #1A178D #8D178A
monochromatic
#142406 #32580E #4F8D17 #6CC220 #8BE03F

Accessibility & contrast

On white

4.07
#4F8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#4F8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8D17
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8D17#FFFFFF#000000##000000
##4F8D171.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#8A7C25
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4f8d17;
/* rgb */ color: rgb(79, 141, 23);
/* oklch */ color: oklch(57.9% 0.157 134.3);
Tailwind
colors: {
  custom: {
    50: '#87af60',
    500: '#4f8d17',
    950: '#000000',
  },
}
SCSS
$custom: #4f8d17;
$custom-light: #87af60;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8d17",
  "rgb": {
    "r": 79,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 91.525,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57921,
    "c": 0.15737,
    "h": 134.3
  },
  "luminance": 0.20774
}

Semantic roles & 50–950 ramp

primary
#4F8D17
secondary
#8340C0
accent
#39EF99
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4F8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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