#4F5212#4F5212

#4F5212 is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.3% C 0.084 H 112.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#4F5212
RGBrgb(79, 82, 18)
HSLhsl(63, 64%, 20%)
HSVhsv(63, 78%, 32%)
CMYKcmyk(3.7%, 0%, 78%, 67.8%)
CIE-LABlab(33.44, -10.19, 34.94)
CIE-LCHlch(33.44, 36.40, 106.27°)
OKLaboklab(42.27% -0.0315 0.0774)
OKLCHoklch(42.27% 0.084 112.2)
XYZxyz(6.3511, 7.7407, 1.7317)
Luminance0.0774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5212 #151252
analogous
#523512 #4F5212 #2F5212
triadic
#4F5212 #124F52 #52124F
tetradic
#4F5212 #125235 #151252 #52122F
square
#4F5212 #125235 #151252 #52122F
split-complementary
#4F5212 #122F52 #351252
monochromatic
#181906 #1F2007 #4F5212 #7F841D #B0B628

Accessibility & contrast

On white

8.24
#4F5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4F5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F5212
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5212#FFFFFF#000000##FFFFFF
##4F52121.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E07
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#554D46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4f5212;
/* rgb */ color: rgb(79, 82, 18);
/* oklch */ color: oklch(42.3% 0.084 112.2);
Tailwind
colors: {
  custom: {
    50: '#838255',
    500: '#4f5212',
    950: '#000000',
  },
}
SCSS
$custom: #4f5212;
$custom-light: #838255;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5212",
  "rgb": {
    "r": 79,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 62.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.42268,
    "c": 0.08362,
    "h": 112.2
  },
  "luminance": 0.07741
}

Semantic roles & 50–950 ramp

primary
#4F5212
secondary
#39358B
accent
#41E749
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F5212

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

Preview Lab → · Contrast checker → · Palette generator →

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