#4F7915#4F7915

#4F7915 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.6% C 0.133 H 130.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4F7915
RGBrgb(79, 121, 21)
HSLhsl(85, 70%, 28%)
HSVhsv(85, 83%, 47%)
CMYKcmyk(34.7%, 0%, 82.6%, 52.5%)
CIE-LABlab(46.16, -30.37, 45.83)
CIE-LCHlch(46.16, 54.98, 123.53°)
OKLaboklab(52.57% -0.0865 0.1009)
OKLCHoklch(52.57% 0.133 130.6)
XYZxyz(10.1971, 15.3908, 3.1428)
Luminance0.1539 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7915 #3F1579
analogous
#797115 #4F7915 #1D7915
triadic
#4F7915 #154F79 #79154F
tetradic
#4F7915 #157971 #3F1579 #79151D
square
#4F7915 #157971 #3F1579 #79151D
split-complementary
#4F7915 #151D79 #711579
monochromatic
#111A05 #2D450C #4F7915 #71AD1E #92DB2E

Accessibility & contrast

On white

5.15
#4F7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#4F7915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7915
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7915#FFFFFF#000000##FFFFFF
##4F79151.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#517367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f7915;
/* rgb */ color: rgb(79, 121, 21);
/* oklch */ color: oklch(52.6% 0.133 130.6);
Tailwind
colors: {
  custom: {
    50: '#85a05c',
    500: '#4f7915',
    950: '#000000',
  },
}
SCSS
$custom: #4f7915;
$custom-light: #85a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7915",
  "rgb": {
    "r": 79,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 85.2,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.5257,
    "c": 0.13294,
    "h": 130.6
  },
  "luminance": 0.15391
}

Semantic roles & 50–950 ramp

primary
#4F7915
secondary
#6C3BAF
accent
#3BED86
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7915

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

Preview Lab → · Contrast checker → · Palette generator →

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