#4F8D15#4F8D15

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

Color values

HEX#4F8D15
RGBrgb(79, 141, 21)
HSLhsl(91, 74%, 32%)
HSVhsv(91, 85%, 55%)
CMYKcmyk(44%, 0%, 85.1%, 44.7%)
CIE-LABlab(52.69, -39.24, 51.74)
CIE-LCHlch(52.69, 64.93, 127.18°)
OKLaboklab(57.91% -0.1103 0.1134)
OKLCHoklch(57.91% 0.158 134.2)
XYZxyz(12.8844, 20.7654, 4.0385)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8D15 #53158D
analogous
#8B8D15 #4F8D15 #158D17
triadic
#4F8D15 #154F8D #8D154F
tetradic
#4F8D15 #158B8D #53158D #8D1715
square
#4F8D15 #158B8D #53158D #8D1715
split-complementary
#4F8D15 #17158D #8D158B
monochromatic
#132205 #31580D #4F8D15 #6DC21D #8BE23B

Accessibility & contrast

On white

4.08
#4F8D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F8D15#FFFFFF#000000##000000
##4F8D151.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f8d15;
/* rgb */ color: rgb(79, 141, 21);
/* oklch */ color: oklch(57.9% 0.158 134.2);
Tailwind
colors: {
  custom: {
    50: '#87af5f',
    500: '#4f8d15',
    950: '#000000',
  },
}
SCSS
$custom: #4f8d15;
$custom-light: #87af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8d15",
  "rgb": {
    "r": 79,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 91,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57911,
    "c": 0.15822,
    "h": 134.2
  },
  "luminance": 0.20766
}

Semantic roles & 50–950 ramp

primary
#4F8D15
secondary
#813DC1
accent
#37F197
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4F8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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