#4F8B18#4F8B18

#4F8B18 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.4% C 0.154 H 134.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#4F8B18
RGBrgb(79, 139, 24)
HSLhsl(91, 71%, 32%)
HSVhsv(91, 83%, 55%)
CMYKcmyk(43.2%, 0%, 82.7%, 45.5%)
CIE-LABlab(52.05, -38.25, 50.32)
CIE-LCHlch(52.05, 63.20, 127.24°)
OKLaboklab(57.39% -0.1075 0.1109)
OKLCHoklch(57.39% 0.154 134.1)
XYZxyz(12.6217, 20.1928, 4.0965)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8B18 #54188B
analogous
#898B18 #4F8B18 #188B1A
triadic
#4F8B18 #184F8B #8B184F
tetradic
#4F8B18 #18898B #54188B #8B1A18
square
#4F8B18 #18898B #54188B #8B1A18
split-complementary
#4F8B18 #1A188B #8B1889
monochromatic
#142306 #31570F #4F8B18 #6DBF21 #8BDE3F

Accessibility & contrast

On white

4.17
#4F8B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#4F8B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8B18
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8B18#FFFFFF#000000##000000
##4F8B181.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#897A26
Tritanopia (blue-blind)
#4E8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4f8b18;
/* rgb */ color: rgb(79, 139, 24);
/* oklch */ color: oklch(57.4% 0.154 134.1);
Tailwind
colors: {
  custom: {
    50: '#86ad60',
    500: '#4f8b18',
    950: '#000000',
  },
}
SCSS
$custom: #4f8b18;
$custom-light: #86ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8b18",
  "rgb": {
    "r": 79,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 91.304,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57392,
    "c": 0.15444,
    "h": 134.1
  },
  "luminance": 0.20193
}

Semantic roles & 50–950 ramp

primary
#4F8B18
secondary
#8240BE
accent
#3AED98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4F8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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