#4F7F20#4F7F20

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

Color values

HEX#4F7F20
RGBrgb(79, 127, 32)
HSLhsl(90, 60%, 31%)
HSVhsv(90, 75%, 50%)
CMYKcmyk(37.8%, 0%, 74.8%, 50.2%)
CIE-LABlab(48.19, -32.47, 43.89)
CIE-LCHlch(48.19, 54.60, 126.49°)
OKLaboklab(54.25% -0.0914 0.0987)
OKLCHoklch(54.25% 0.134 132.8)
XYZxyz(11.0744, 16.9448, 4.0534)
Luminance0.1694 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7F20 #50207F
analogous
#7E7F20 #4F7F20 #207F21
triadic
#4F7F20 #204F7F #7F204F
tetradic
#4F7F20 #207E7F #50207F #7F2120
square
#4F7F20 #207E7F #50207F #7F2120
split-complementary
#4F7F20 #21207F #7F207E
monochromatic
#121D07 #314E14 #4F7F20 #6DB02C #8CD148

Accessibility & contrast

On white

4.78
#4F7F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#4F7F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7F20
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7F20#FFFFFF#000000##FFFFFF
##4F7F201.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750F
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#507A6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4f7f20;
/* rgb */ color: rgb(79, 127, 32);
/* oklch */ color: oklch(54.2% 0.134 132.8);
Tailwind
colors: {
  custom: {
    50: '#85a462',
    500: '#4f7f20',
    950: '#000000',
  },
}
SCSS
$custom: #4f7f20;
$custom-light: #85a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7f20",
  "rgb": {
    "r": 79,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 90.316,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54245,
    "c": 0.13448,
    "h": 132.8
  },
  "luminance": 0.16945
}

Semantic roles & 50–950 ramp

primary
#4F7F20
secondary
#7E49B2
accent
#45E395
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4F7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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