#4F7B18#4F7B18

#4F7B18 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.1% C 0.134 H 131.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4F7B18
RGBrgb(79, 123, 24)
HSLhsl(87, 67%, 29%)
HSVhsv(87, 80%, 48%)
CMYKcmyk(35.8%, 0%, 80.5%, 51.8%)
CIE-LABlab(46.83, -31.14, 45.48)
CIE-LCHlch(46.83, 55.12, 124.40°)
OKLaboklab(53.12% -0.0884 0.1007)
OKLCHoklch(53.12% 0.134 131.3)
XYZxyz(10.4722, 15.8937, 3.3800)
Luminance0.1589 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7B18 #44187B
analogous
#7B7618 #4F7B18 #1D7B18
triadic
#4F7B18 #184F7B #7B184F
tetradic
#4F7B18 #187B76 #44187B #7B181D
square
#4F7B18 #187B76 #44187B #7B181D
split-complementary
#4F7B18 #181D7B #76187B
monochromatic
#101A05 #2E480E #4F7B18 #70AE22 #90D836

Accessibility & contrast

On white

5.03
#4F7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#4F7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7B18
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7B18#FFFFFF#000000##FFFFFF
##4F7B181.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#517669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4f7b18;
/* rgb */ color: rgb(79, 123, 24);
/* oklch */ color: oklch(53.1% 0.134 131.3);
Tailwind
colors: {
  custom: {
    50: '#85a15e',
    500: '#4f7b18',
    950: '#000000',
  },
}
SCSS
$custom: #4f7b18;
$custom-light: #85a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7b18",
  "rgb": {
    "r": 79,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 86.667,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53122,
    "c": 0.13398,
    "h": 131.3
  },
  "luminance": 0.15894
}

Semantic roles & 50–950 ramp

primary
#4F7B18
secondary
#713FB0
accent
#3EEA8A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4F7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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