#4F8F12#4F8F12

#4F8F12 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.4% C 0.162 H 134.3°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#4F8F12
RGBrgb(79, 143, 18)
HSLhsl(91, 78%, 32%)
HSVhsv(91, 87%, 56%)
CMYKcmyk(44.8%, 0%, 87.4%, 43.9%)
CIE-LABlab(53.33, -40.20, 53.05)
CIE-LCHlch(53.33, 66.56, 127.15°)
OKLaboklab(58.43% -0.1131 0.1157)
OKLCHoklch(58.43% 0.162 134.3)
XYZxyz(13.1558, 21.3501, 3.9999)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8F12 #52128F
analogous
#8E8F12 #4F8F12 #128F14
triadic
#4F8F12 #124F8F #8F124F
tetradic
#4F8F12 #128E8F #52128F #8F1412
square
#4F8F12 #128E8F #52128F #8F1412
split-complementary
#4F8F12 #14128F #8F128E
monochromatic
#132204 #31590B #4F8F12 #6DC519 #8CE636

Accessibility & contrast

On white

3.98
#4F8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#4F8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8F12
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8F12#FFFFFF#000000##000000
##4F8F121.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8C7E23
Tritanopia (blue-blind)
#4E8979
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4f8f12;
/* rgb */ color: rgb(79, 143, 18);
/* oklch */ color: oklch(58.4% 0.162 134.3);
Tailwind
colors: {
  custom: {
    50: '#87b05f',
    500: '#4f8f12',
    950: '#000000',
  },
}
SCSS
$custom: #4f8f12;
$custom-light: #87b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8f12",
  "rgb": {
    "r": 79,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 90.72,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58431,
    "c": 0.1618,
    "h": 134.3
  },
  "luminance": 0.21351
}

Semantic roles & 50–950 ramp

primary
#4F8F12
secondary
#803AC3
accent
#34F496
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4F8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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