#4F7D17#4F7D17

#4F7D17 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.6% C 0.137 H 131.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#4F7D17
RGBrgb(79, 125, 23)
HSLhsl(87, 69%, 29%)
HSVhsv(87, 82%, 49%)
CMYKcmyk(36.8%, 0%, 81.6%, 51%)
CIE-LABlab(47.48, -32.11, 46.41)
CIE-LCHlch(47.48, 56.44, 124.68°)
OKLaboklab(53.65% -0.0911 0.1025)
OKLCHoklch(53.65% 0.137 131.6)
XYZxyz(10.7126, 16.3909, 3.4098)
Luminance0.1639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7D17 #45177D
analogous
#7D7817 #4F7D17 #1C7D17
triadic
#4F7D17 #174F7D #7D174F
tetradic
#4F7D17 #177D78 #45177D #7D171C
square
#4F7D17 #177D78 #45177D #7D171C
split-complementary
#4F7D17 #171C7D #78177D
monochromatic
#101A05 #2E490D #4F7D17 #70B121 #8FDA35

Accessibility & contrast

On white

4.91
#4F7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#4F7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7D17
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7D17#FFFFFF#000000##FFFFFF
##4F7D171.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#50776A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4f7d17;
/* rgb */ color: rgb(79, 125, 23);
/* oklch */ color: oklch(53.6% 0.137 131.6);
Tailwind
colors: {
  custom: {
    50: '#85a35e',
    500: '#4f7d17',
    950: '#000000',
  },
}
SCSS
$custom: #4f7d17;
$custom-light: #85a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7d17",
  "rgb": {
    "r": 79,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 87.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5365,
    "c": 0.13711,
    "h": 131.6
  },
  "luminance": 0.16391
}

Semantic roles & 50–950 ramp

primary
#4F7D17
secondary
#723EB2
accent
#3CEC8B
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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