#4F6212#4F6212

#4F6212 is a mid, moderate yellow-green. Relative luminance 0.104; OKLCH L 46.4% C 0.104 H 122.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#4F6212
RGBrgb(79, 98, 18)
HSLhsl(74, 69%, 23%)
HSVhsv(74, 82%, 38%)
CMYKcmyk(19.4%, 0%, 81.6%, 61.6%)
CIE-LABlab(38.62, -19.08, 39.85)
CIE-LCHlch(38.62, 44.19, 115.59°)
OKLaboklab(46.44% -0.0561 0.0878)
OKLCHoklch(46.44% 0.104 122.6)
XYZxyz(7.7014, 10.4413, 2.1818)
Luminance0.1044 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F6212 #251262
analogous
#624D12 #4F6212 #276212
triadic
#4F6212 #124F62 #62124F
tetradic
#4F6212 #12624D #251262 #621227
square
#4F6212 #12624D #251262 #621227
split-complementary
#4F6212 #122762 #4D1262
monochromatic
#151A05 #252E09 #4F6212 #79961B #A2C925

Accessibility & contrast

On white

6.80
#4F6212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4F6212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F6212
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F6212#FFFFFF#000000##FFFFFF
##4F62121.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#665B1A
Tritanopia (blue-blind)
#545D53
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4f6212;
/* rgb */ color: rgb(79, 98, 18);
/* oklch */ color: oklch(46.4% 0.104 122.6);
Tailwind
colors: {
  custom: {
    50: '#838e57',
    500: '#4f6212',
    950: '#000000',
  },
}
SCSS
$custom: #4f6212;
$custom-light: #838e57;
$custom-dark: #000000;
JSON
{
  "hex": "#4f6212",
  "rgb": {
    "r": 79,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 74.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.4644,
    "c": 0.10419,
    "h": 122.6
  },
  "luminance": 0.10441
}

Semantic roles & 50–950 ramp

primary
#4F6212
secondary
#4E369A
accent
#3CEC66
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4F6212

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

Preview Lab → · Contrast checker → · Palette generator →

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