#4F7F17#4F7F17

#4F7F17 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.140 H 132.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4F7F17
RGBrgb(79, 127, 23)
HSLhsl(88, 69%, 29%)
HSVhsv(88, 82%, 50%)
CMYKcmyk(37.8%, 0%, 81.9%, 50.2%)
CIE-LABlab(48.14, -33.02, 47.02)
CIE-LCHlch(48.14, 57.46, 125.08°)
OKLaboklab(54.18% -0.0935 0.1038)
OKLCHoklch(54.18% 0.14 132)
XYZxyz(10.9684, 16.9024, 3.4950)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7F17 #47177F
analogous
#7F7B17 #4F7F17 #1B7F17
triadic
#4F7F17 #174F7F #7F174F
tetradic
#4F7F17 #177F7B #47177F #7F171B
square
#4F7F17 #177F7B #47177F #7F171B
split-complementary
#4F7F17 #171B7F #7B177F
monochromatic
#101A05 #2F4B0E #4F7F17 #6FB320 #8FDB36

Accessibility & contrast

On white

4.79
#4F7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#4F7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7F17
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7F17#FFFFFF#000000##FFFFFF
##4F7F171.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#50796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4f7f17;
/* rgb */ color: rgb(79, 127, 23);
/* oklch */ color: oklch(54.2% 0.140 132.0);
Tailwind
colors: {
  custom: {
    50: '#85a45e',
    500: '#4f7f17',
    950: '#000000',
  },
}
SCSS
$custom: #4f7f17;
$custom-light: #85a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7f17",
  "rgb": {
    "r": 79,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 87.692,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54184,
    "c": 0.1397,
    "h": 132
  },
  "luminance": 0.16903
}

Semantic roles & 50–950 ramp

primary
#4F7F17
secondary
#743EB4
accent
#3CEC8D
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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