#4F8018#4F8018

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

Color values

HEX#4F8018
RGBrgb(79, 128, 24)
HSLhsl(88, 68%, 30%)
HSVhsv(88, 81%, 50%)
CMYKcmyk(38.3%, 0%, 81.3%, 49.8%)
CIE-LABlab(48.47, -33.42, 47.01)
CIE-LCHlch(48.47, 57.68, 125.41°)
OKLaboklab(54.46% -0.0945 0.1039)
OKLCHoklch(54.46% 0.14 132.3)
XYZxyz(11.1084, 17.1661, 3.5921)
Luminance0.1717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8018 #491880
analogous
#807D18 #4F8018 #1B8018
triadic
#4F8018 #184F80 #80184F
tetradic
#4F8018 #18807D #491880 #80181B
square
#4F8018 #18807D #491880 #80181B
split-complementary
#4F8018 #181B80 #7D1880
monochromatic
#101A05 #2F4C0E #4F8018 #6FB422 #8EDA39

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F8018#FFFFFF#000000##FFFFFF
##4F80181.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: #4f8018;
/* rgb */ color: rgb(79, 128, 24);
/* oklch */ color: oklch(54.5% 0.140 132.3);
Tailwind
colors: {
  custom: {
    50: '#85a55f',
    500: '#4f8018',
    950: '#000000',
  },
}
SCSS
$custom: #4f8018;
$custom-light: #85a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8018",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 88.269,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54457,
    "c": 0.14048,
    "h": 132.3
  },
  "luminance": 0.17167
}

Semantic roles & 50–950 ramp

primary
#4F8018
secondary
#7740B4
accent
#3DEB8F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F8018

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

Preview Lab → · Contrast checker → · Palette generator →

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