#4F6812#4F6812

#4F6812 is a mid, moderate yellow-green. Relative luminance 0.116; OKLCH L 48.0% C 0.112 H 125.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#4F6812
RGBrgb(79, 104, 18)
HSLhsl(77, 70%, 24%)
HSVhsv(77, 83%, 41%)
CMYKcmyk(24%, 0%, 82.7%, 59.2%)
CIE-LABlab(40.58, -22.21, 41.67)
CIE-LCHlch(40.58, 47.22, 118.06°)
OKLaboklab(48.03% -0.0646 0.0916)
OKLCHoklch(48.03% 0.112 125.2)
XYZxyz(8.2840, 11.6065, 2.3760)
Luminance0.1161 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F6812 #2B1268
analogous
#685612 #4F6812 #246812
triadic
#4F6812 #124F68 #68124F
tetradic
#4F6812 #126856 #2B1268 #681224
square
#4F6812 #126856 #2B1268 #681224
split-complementary
#4F6812 #122468 #561268
monochromatic
#141A05 #273409 #4F6812 #779C1B #9ED024

Accessibility & contrast

On white

6.32
#4F6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4F6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F6812
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F6812#FFFFFF#000000##FFFFFF
##4F68121.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6100
Deuteranopia (green-blind)
#6B5F1B
Tritanopia (blue-blind)
#536358
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4f6812;
/* rgb */ color: rgb(79, 104, 18);
/* oklch */ color: oklch(48.0% 0.112 125.2);
Tailwind
colors: {
  custom: {
    50: '#839358',
    500: '#4f6812',
    950: '#000000',
  },
}
SCSS
$custom: #4f6812;
$custom-light: #839358;
$custom-dark: #000000;
JSON
{
  "hex": "#4f6812",
  "rgb": {
    "r": 79,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 77.442,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.48027,
    "c": 0.11213,
    "h": 125.2
  },
  "luminance": 0.11607
}

Semantic roles & 50–950 ramp

primary
#4F6812
secondary
#5536A0
accent
#3BED6E
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4F6812

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

Preview Lab → · Contrast checker → · Palette generator →

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