#4F5F12#4F5F12

#4F5F12 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.6% C 0.100 H 121.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4F5F12
RGBrgb(79, 95, 18)
HSLhsl(72, 68%, 22%)
HSVhsv(72, 81%, 37%)
CMYKcmyk(16.8%, 0%, 81.1%, 62.7%)
CIE-LABlab(37.65, -17.48, 38.94)
CIE-LCHlch(37.65, 42.68, 114.17°)
OKLaboklab(45.65% -0.0517 0.0859)
OKLCHoklch(45.65% 0.1 121)
XYZxyz(7.4260, 9.8904, 2.0900)
Luminance0.0989 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5F12 #22125F
analogous
#5F4912 #4F5F12 #285F12
triadic
#4F5F12 #124F5F #5F124F
tetradic
#4F5F12 #125F49 #22125F #5F1228
square
#4F5F12 #125F49 #22125F #5F1228
split-complementary
#4F5F12 #12285F #49125F
monochromatic
#151A05 #242C08 #4F5F12 #7A921C #A5C625

Accessibility & contrast

On white

7.05
#4F5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4F5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F5F12
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5F12#FFFFFF#000000##FFFFFF
##4F5F121.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655902
Deuteranopia (green-blind)
#635919
Tritanopia (blue-blind)
#545A51
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4f5f12;
/* rgb */ color: rgb(79, 95, 18);
/* oklch */ color: oklch(45.6% 0.100 121.0);
Tailwind
colors: {
  custom: {
    50: '#838c57',
    500: '#4f5f12',
    950: '#000000',
  },
}
SCSS
$custom: #4f5f12;
$custom-light: #838c57;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5f12",
  "rgb": {
    "r": 79,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 72.468,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.4565,
    "c": 0.10023,
    "h": 121
  },
  "luminance": 0.0989
}

Semantic roles & 50–950 ramp

primary
#4F5F12
secondary
#4A3697
accent
#3DEB61
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4F5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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