#4F8118#4F8118

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

Color values

HEX#4F8118
RGBrgb(79, 129, 24)
HSLhsl(89, 69%, 30%)
HSVhsv(89, 81%, 51%)
CMYKcmyk(38.8%, 0%, 81.4%, 49.4%)
CIE-LABlab(48.80, -33.87, 47.31)
CIE-LCHlch(48.80, 58.19, 125.60°)
OKLaboklab(54.72% -0.0957 0.1046)
OKLCHoklch(54.72% 0.142 132.5)
XYZxyz(11.2394, 17.4282, 3.6358)
Luminance0.1743 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8118 #4A1881
analogous
#817E18 #4F8118 #1B8118
triadic
#4F8118 #184F81 #81184F
tetradic
#4F8118 #18817E #4A1881 #81181B
square
#4F8118 #18817E #4A1881 #81181B
split-complementary
#4F8118 #181B81 #7E1881
monochromatic
#101A05 #2F4D0E #4F8118 #6FB522 #8EDA39

Accessibility & contrast

On white

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

On black

4.49
#4F8118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4F8118#FFFFFF#000000##FFFFFF
##4F81181.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f8118;
/* rgb */ color: rgb(79, 129, 24);
/* oklch */ color: oklch(54.7% 0.142 132.5);
Tailwind
colors: {
  custom: {
    50: '#85a65f',
    500: '#4f8118',
    950: '#000000',
  },
}
SCSS
$custom: #4f8118;
$custom-light: #85a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8118",
  "rgb": {
    "r": 79,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 88.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.54723,
    "c": 0.14177,
    "h": 132.5
  },
  "luminance": 0.17429
}

Semantic roles & 50–950 ramp

primary
#4F8118
secondary
#7840B5
accent
#3CEB90
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F8118

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

Preview Lab → · Contrast checker → · Palette generator →

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