#4F7212#4F7212

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

Color values

HEX#4F7212
RGBrgb(79, 114, 18)
HSLhsl(82, 73%, 26%)
HSVhsv(82, 84%, 45%)
CMYKcmyk(30.7%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.86, -27.19, 44.66)
CIE-LCHlch(43.86, 52.28, 121.34°)
OKLaboklab(50.69% -0.0781 0.098)
OKLCHoklch(50.69% 0.125 128.6)
XYZxyz(9.3509, 13.7403, 2.7316)
Luminance0.1374 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7212 #351272
analogous
#726512 #4F7212 #1F7212
triadic
#4F7212 #124F72 #72124F
tetradic
#4F7212 #127265 #351272 #72121F
square
#4F7212 #127265 #351272 #72121F
split-complementary
#4F7212 #121F72 #651272
monochromatic
#121A04 #2A3D0A #4F7212 #74A71A #98DC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F7212#FFFFFF#000000##FFFFFF
##4F72121.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)
#73671D
Tritanopia (blue-blind)
#526C61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4f7212;
/* rgb */ color: rgb(79, 114, 18);
/* oklch */ color: oklch(50.7% 0.125 128.6);
Tailwind
colors: {
  custom: {
    50: '#849a5a',
    500: '#4f7212',
    950: '#000000',
  },
}
SCSS
$custom: #4f7212;
$custom-light: #849a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7212",
  "rgb": {
    "r": 79,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 81.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50686,
    "c": 0.12529,
    "h": 128.6
  },
  "luminance": 0.13741
}

Semantic roles & 50–950 ramp

primary
#4F7212
secondary
#6037A9
accent
#38EF7B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7212

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

Preview Lab → · Contrast checker → · Palette generator →

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