#4F7E17#4F7E17

#4F7E17 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.9% C 0.138 H 131.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4F7E17
RGBrgb(79, 126, 23)
HSLhsl(87, 69%, 29%)
HSVhsv(87, 82%, 49%)
CMYKcmyk(37.3%, 0%, 81.7%, 50.6%)
CIE-LABlab(47.81, -32.57, 46.72)
CIE-LCHlch(47.81, 56.95, 124.88°)
OKLaboklab(53.92% -0.0923 0.1031)
OKLCHoklch(53.92% 0.138 131.8)
XYZxyz(10.8398, 16.6454, 3.4522)
Luminance0.1665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7E17 #46177E
analogous
#7E7A17 #4F7E17 #1B7E17
triadic
#4F7E17 #174F7E #7E174F
tetradic
#4F7E17 #177E7A #46177E #7E171B
square
#4F7E17 #177E7A #46177E #7E171B
split-complementary
#4F7E17 #171B7E #7A177E
monochromatic
#101A05 #2F4A0E #4F7E17 #6FB220 #8FDA35

Accessibility & contrast

On white

4.85
#4F7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#4F7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7E17
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7E17#FFFFFF#000000##FFFFFF
##4F7E171.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7022
Tritanopia (blue-blind)
#50786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4f7e17;
/* rgb */ color: rgb(79, 126, 23);
/* oklch */ color: oklch(53.9% 0.138 131.8);
Tailwind
colors: {
  custom: {
    50: '#85a35e',
    500: '#4f7e17',
    950: '#000000',
  },
}
SCSS
$custom: #4f7e17;
$custom-light: #85a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7e17",
  "rgb": {
    "r": 79,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 87.379,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53917,
    "c": 0.13841,
    "h": 131.8
  },
  "luminance": 0.16646
}

Semantic roles & 50–950 ramp

primary
#4F7E17
secondary
#733EB3
accent
#3CEC8C
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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