#4F7018#4F7018

#4F7018 is a mid, moderate yellow-green. Relative luminance 0.133; OKLCH L 50.2% C 0.119 H 128.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#4F7018
RGBrgb(79, 112, 24)
HSLhsl(83, 65%, 27%)
HSVhsv(83, 79%, 44%)
CMYKcmyk(29.5%, 0%, 78.6%, 56.1%)
CIE-LABlab(43.24, -25.89, 42.06)
CIE-LCHlch(43.24, 49.39, 121.62°)
OKLaboklab(50.19% -0.0741 0.0935)
OKLCHoklch(50.19% 0.119 128.4)
XYZxyz(9.1835, 13.3163, 2.9504)
Luminance0.1332 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7018 #391870
analogous
#706518 #4F7018 #237018
triadic
#4F7018 #184F70 #70184F
tetradic
#4F7018 #187065 #391870 #701823
square
#4F7018 #187065 #391870 #701823
split-complementary
#4F7018 #182370 #651870
monochromatic
#121905 #2B3E0D #4F7018 #73A223 #96D330

Accessibility & contrast

On white

5.73
#4F7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#4F7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7018
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7018#FFFFFF#000000##FFFFFF
##4F70181.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766805
Deuteranopia (green-blind)
#716521
Tritanopia (blue-blind)
#526B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4f7018;
/* rgb */ color: rgb(79, 112, 24);
/* oklch */ color: oklch(50.2% 0.119 128.4);
Tailwind
colors: {
  custom: {
    50: '#84995c',
    500: '#4f7018',
    950: '#000000',
  },
}
SCSS
$custom: #4f7018;
$custom-light: #84995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7018",
  "rgb": {
    "r": 79,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 82.5,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50191,
    "c": 0.11935,
    "h": 128.4
  },
  "luminance": 0.13317
}

Semantic roles & 50–950 ramp

primary
#4F7018
secondary
#653EA5
accent
#40E87F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7018

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

Preview Lab → · Contrast checker → · Palette generator →

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