#4F7F12#4F7F12

#4F7F12 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.142 H 131.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4F7F12
RGBrgb(79, 127, 18)
HSLhsl(86, 75%, 28%)
HSVhsv(86, 86%, 50%)
CMYKcmyk(37.8%, 0%, 85.8%, 50.2%)
CIE-LABlab(48.11, -33.26, 48.47)
CIE-LCHlch(48.11, 58.78, 124.46°)
OKLaboklab(54.16% -0.0945 0.106)
OKLCHoklch(54.16% 0.142 131.7)
XYZxyz(10.9229, 16.8842, 3.2556)
Luminance0.1689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7F12 #42127F
analogous
#7F7812 #4F7F12 #187F12
triadic
#4F7F12 #124F7F #7F124F
tetradic
#4F7F12 #127F78 #42127F #7F1218
square
#4F7F12 #127F78 #42127F #7F1218
split-complementary
#4F7F12 #12187F #78127F
monochromatic
#111B04 #2E490A #4F7F12 #70B51A #91E12B

Accessibility & contrast

On white

4.80
#4F7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#4F7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7F12
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7F12#FFFFFF#000000##FFFFFF
##4F7F121.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E711F
Tritanopia (blue-blind)
#50796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4f7f12;
/* rgb */ color: rgb(79, 127, 18);
/* oklch */ color: oklch(54.2% 0.142 131.7);
Tailwind
colors: {
  custom: {
    50: '#85a45c',
    500: '#4f7f12',
    950: '#000000',
  },
}
SCSS
$custom: #4f7f12;
$custom-light: #85a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7f12",
  "rgb": {
    "r": 79,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 86.422,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54158,
    "c": 0.14201,
    "h": 131.7
  },
  "luminance": 0.16885
}

Semantic roles & 50–950 ramp

primary
#4F7F12
secondary
#6F38B5
accent
#36F289
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F04
muted
#7D7F79

Preview Lab

Preview with #4F7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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