#4F7B1C#4F7B1C

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

Color values

HEX#4F7B1C
RGBrgb(79, 123, 28)
HSLhsl(88, 63%, 30%)
HSVhsv(88, 77%, 48%)
CMYKcmyk(35.8%, 0%, 77.2%, 51.8%)
CIE-LABlab(46.86, -30.90, 44.09)
CIE-LCHlch(46.86, 53.84, 125.02°)
OKLaboklab(53.15% -0.0874 0.0985)
OKLCHoklch(53.15% 0.132 131.6)
XYZxyz(10.5169, 15.9116, 3.6155)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7B1C #481C7B
analogous
#7B771C #4F7B1C #207B1C
triadic
#4F7B1C #1C4F7B #7B1C4F
tetradic
#4F7B1C #1C7B77 #481C7B #7B1C20
square
#4F7B1C #1C7B77 #481C7B #7B1C20
split-complementary
#4F7B1C #1C207B #771C7B
monochromatic
#101906 #2F4911 #4F7B1C #6FAD27 #8ED33E

Accessibility & contrast

On white

5.02
#4F7B1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4F7B1C
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7B1C#FFFFFF#000000##FFFFFF
##4F7B1C1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817108
Deuteranopia (green-blind)
#7B6E25
Tritanopia (blue-blind)
#507669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4f7b1c;
/* rgb */ color: rgb(79, 123, 28);
/* oklch */ color: oklch(53.1% 0.132 131.6);
Tailwind
colors: {
  custom: {
    50: '#84a160',
    500: '#4f7b1c',
    950: '#000000',
  },
}
SCSS
$custom: #4f7b1c;
$custom-light: #84a160;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7b1c",
  "rgb": {
    "r": 79,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 87.789,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53149,
    "c": 0.13166,
    "h": 131.6
  },
  "luminance": 0.15912
}

Semantic roles & 50–950 ramp

primary
#4F7B1C
secondary
#7544AF
accent
#42E68E
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4F7B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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