#4F7818#4F7818

#4F7818 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.130 H 130.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4F7818
RGBrgb(79, 120, 24)
HSLhsl(86, 67%, 28%)
HSVhsv(86, 80%, 47%)
CMYKcmyk(34.2%, 0%, 80%, 52.9%)
CIE-LABlab(45.85, -29.74, 44.55)
CIE-LCHlch(45.85, 53.57, 123.72°)
OKLaboklab(52.32% -0.0846 0.0988)
OKLCHoklch(52.32% 0.13 130.6)
XYZxyz(10.1057, 15.1608, 3.2579)
Luminance0.1516 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7818 #411878
analogous
#787118 #4F7818 #1F7818
triadic
#4F7818 #184F78 #78184F
tetradic
#4F7818 #187871 #411878 #78181F
square
#4F7818 #187871 #411878 #78181F
split-complementary
#4F7818 #181F78 #711878
monochromatic
#111A05 #2D450E #4F7818 #71AB22 #91D634

Accessibility & contrast

On white

5.21
#4F7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#4F7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7818
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7818#FFFFFF#000000##FFFFFF
##4F78181.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F01
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#517366
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f7818;
/* rgb */ color: rgb(79, 120, 24);
/* oklch */ color: oklch(52.3% 0.130 130.6);
Tailwind
colors: {
  custom: {
    50: '#849f5d',
    500: '#4f7818',
    950: '#000000',
  },
}
SCSS
$custom: #4f7818;
$custom-light: #849f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7818",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 85.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52322,
    "c": 0.13003,
    "h": 130.6
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#4F7818
secondary
#6E3FAD
accent
#3EEA87
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F7818

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

Preview Lab → · Contrast checker → · Palette generator →

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