#4E5212#4E5212

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

Color values

HEX#4E5212
RGBrgb(78, 82, 18)
HSLhsl(64, 64%, 20%)
HSVhsv(64, 78%, 32%)
CMYKcmyk(4.9%, 0%, 78%, 67.8%)
CIE-LABlab(33.35, -10.68, 34.82)
CIE-LCHlch(33.35, 36.42, 107.06°)
OKLaboklab(42.17% -0.0328 0.0772)
OKLCHoklch(42.17% 0.084 113)
XYZxyz(6.2686, 7.6981, 1.7278)
Luminance0.0770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5212 #161252
analogous
#523612 #4E5212 #2E5212
triadic
#4E5212 #124E52 #52124E
tetradic
#4E5212 #125236 #161252 #52122E
square
#4E5212 #125236 #161252 #52122E
split-complementary
#4E5212 #122E52 #361252
monochromatic
#181906 #1E2007 #4E5212 #7E841D #ADB628

Accessibility & contrast

On white

8.27
#4E5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4E5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5212
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5212#FFFFFF#000000##FFFFFF
##4E52121.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e5212;
/* rgb */ color: rgb(78, 82, 18);
/* oklch */ color: oklch(42.2% 0.084 113.0);
Tailwind
colors: {
  custom: {
    50: '#828255',
    500: '#4e5212',
    950: '#000000',
  },
}
SCSS
$custom: #4e5212;
$custom-light: #828255;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5212",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 63.75,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.42173,
    "c": 0.08391,
    "h": 113
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

primary
#4E5212
secondary
#3A358B
accent
#41E74B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4E5212

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

Preview Lab → · Contrast checker → · Palette generator →

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