#4F8015#4F8015

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

Color values

HEX#4F8015
RGBrgb(79, 128, 21)
HSLhsl(87, 72%, 29%)
HSVhsv(87, 84%, 50%)
CMYKcmyk(38.3%, 0%, 83.6%, 49.8%)
CIE-LABlab(48.45, -33.58, 47.92)
CIE-LCHlch(48.45, 58.51, 125.02°)
OKLaboklab(54.44% -0.0951 0.1053)
OKLCHoklch(54.44% 0.142 132.1)
XYZxyz(11.0789, 17.1543, 3.4367)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8015 #461580
analogous
#807C15 #4F8015 #198015
triadic
#4F8015 #154F80 #80154F
tetradic
#4F8015 #15807C #461580 #801519
square
#4F8015 #15807C #461580 #801519
split-complementary
#4F8015 #151980 #7C1580
monochromatic
#101A04 #2F4B0C #4F8015 #6FB51E #8FDD32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F8015#FFFFFF#000000##FFFFFF
##4F80151.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)
#867500
Deuteranopia (green-blind)
#7F7222
Tritanopia (blue-blind)
#507A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4f8015;
/* rgb */ color: rgb(79, 128, 21);
/* oklch */ color: oklch(54.4% 0.142 132.1);
Tailwind
colors: {
  custom: {
    50: '#85a55d',
    500: '#4f8015',
    950: '#000000',
  },
}
SCSS
$custom: #4f8015;
$custom-light: #85a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8015",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 87.477,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5444,
    "c": 0.14195,
    "h": 132.1
  },
  "luminance": 0.17155
}

Semantic roles & 50–950 ramp

primary
#4F8015
secondary
#733CB5
accent
#39EF8C
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F8015

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

Preview Lab → · Contrast checker → · Palette generator →

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