#4F8115#4F8115

#4F8115 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.7% C 0.143 H 132.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#4F8115
RGBrgb(79, 129, 21)
HSLhsl(88, 72%, 29%)
HSVhsv(88, 84%, 51%)
CMYKcmyk(38.8%, 0%, 83.7%, 49.4%)
CIE-LABlab(48.78, -34.02, 48.22)
CIE-LCHlch(48.78, 59.01, 125.21°)
OKLaboklab(54.71% -0.0963 0.106)
OKLCHoklch(54.71% 0.143 132.3)
XYZxyz(11.2099, 17.4164, 3.4804)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8115 #471581
analogous
#817D15 #4F8115 #198115
triadic
#4F8115 #154F81 #81154F
tetradic
#4F8115 #15817D #471581 #811519
square
#4F8115 #15817D #471581 #811519
split-complementary
#4F8115 #151981 #7D1581
monochromatic
#101A04 #2F4C0C #4F8115 #6FB61E #8FDE33

Accessibility & contrast

On white

4.68
#4F8115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#4F8115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F8115
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8115#FFFFFF#000000##FFFFFF
##4F81151.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#507B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4f8115;
/* rgb */ color: rgb(79, 129, 21);
/* oklch */ color: oklch(54.7% 0.143 132.3);
Tailwind
colors: {
  custom: {
    50: '#85a65d',
    500: '#4f8115',
    950: '#000000',
  },
}
SCSS
$custom: #4f8115;
$custom-light: #85a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8115",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 87.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54707,
    "c": 0.14322,
    "h": 132.3
  },
  "luminance": 0.17417
}

Semantic roles & 50–950 ramp

primary
#4F8115
secondary
#743CB6
accent
#39EF8D
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #4F8115

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

Preview Lab → · Contrast checker → · Palette generator →

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