#4F8017#4F8017

#4F8017 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.5% C 0.141 H 132.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#4F8017
RGBrgb(79, 128, 23)
HSLhsl(88, 70%, 30%)
HSVhsv(88, 82%, 50%)
CMYKcmyk(38.3%, 0%, 82%, 49.8%)
CIE-LABlab(48.46, -33.48, 47.32)
CIE-LCHlch(48.46, 57.96, 125.28°)
OKLaboklab(54.45% -0.0947 0.1044)
OKLCHoklch(54.45% 0.141 132.2)
XYZxyz(11.0981, 17.1620, 3.5383)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8017 #481780
analogous
#807D17 #4F8017 #1B8017
triadic
#4F8017 #174F80 #80174F
tetradic
#4F8017 #17807D #481780 #80171B
square
#4F8017 #17807D #481780 #80171B
split-complementary
#4F8017 #171B80 #7D1780
monochromatic
#101A05 #2F4C0E #4F8017 #6FB420 #8EDB36

Accessibility & contrast

On white

4.74
#4F8017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#4F8017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F8017
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8017#FFFFFF#000000##FFFFFF
##4F80171.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)
#867600
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#507A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4f8017;
/* rgb */ color: rgb(79, 128, 23);
/* oklch */ color: oklch(54.5% 0.141 132.2);
Tailwind
colors: {
  custom: {
    50: '#85a55e',
    500: '#4f8017',
    950: '#000000',
  },
}
SCSS
$custom: #4f8017;
$custom-light: #85a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8017",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 88,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54451,
    "c": 0.14099,
    "h": 132.2
  },
  "luminance": 0.17162
}

Semantic roles & 50–950 ramp

primary
#4F8017
secondary
#753EB4
accent
#3BEC8E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F8017

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

Preview Lab → · Contrast checker → · Palette generator →

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