#4F7215#4F7215

#4F7215 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.7% C 0.124 H 128.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#4F7215
RGBrgb(79, 114, 21)
HSLhsl(83, 69%, 26%)
HSVhsv(83, 82%, 45%)
CMYKcmyk(30.7%, 0%, 81.6%, 55.3%)
CIE-LABlab(43.87, -27.04, 43.71)
CIE-LCHlch(43.87, 51.40, 121.74°)
OKLaboklab(50.7% -0.0775 0.0965)
OKLCHoklch(50.7% 0.124 128.8)
XYZxyz(9.3771, 13.7508, 2.8694)
Luminance0.1375 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7215 #381572
analogous
#726715 #4F7215 #207215
triadic
#4F7215 #154F72 #72154F
tetradic
#4F7215 #157267 #381572 #721520
square
#4F7215 #157267 #381572 #721520
split-complementary
#4F7215 #152072 #671572
monochromatic
#121A05 #2B3E0B #4F7215 #73A61F #96D82A

Accessibility & contrast

On white

5.60
#4F7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#4F7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7215
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7215#FFFFFF#000000##FFFFFF
##4F72151.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#73671F
Tritanopia (blue-blind)
#526D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4f7215;
/* rgb */ color: rgb(79, 114, 21);
/* oklch */ color: oklch(50.7% 0.124 128.8);
Tailwind
colors: {
  custom: {
    50: '#849a5b',
    500: '#4f7215',
    950: '#000000',
  },
}
SCSS
$custom: #4f7215;
$custom-light: #849a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7215",
  "rgb": {
    "r": 79,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 82.581,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50703,
    "c": 0.12375,
    "h": 128.8
  },
  "luminance": 0.13751
}

Semantic roles & 50–950 ramp

primary
#4F7215
secondary
#643BA8
accent
#3CEC7E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7215

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

Preview Lab → · Contrast checker → · Palette generator →

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