#4E5012#4E5012

#4E5012 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.7% C 0.081 H 111.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#4E5012
RGBrgb(78, 80, 18)
HSLhsl(62, 63%, 19%)
HSVhsv(62, 78%, 31%)
CMYKcmyk(2.5%, 0%, 77.5%, 68.6%)
CIE-LABlab(32.70, -9.52, 34.20)
CIE-LCHlch(32.70, 35.50, 105.56°)
OKLaboklab(41.66% -0.0296 0.0759)
OKLCHoklch(41.66% 0.081 111.3)
XYZxyz(6.1199, 7.4009, 1.6783)
Luminance0.0740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5012 #141250
analogous
#503312 #4E5012 #2F5012
triadic
#4E5012 #124E50 #50124E
tetradic
#4E5012 #125033 #141250 #50122F
square
#4E5012 #125033 #141250 #50122F
split-complementary
#4E5012 #122F50 #331250
monochromatic
#181906 #1D1E07 #4E5012 #7F821D #AFB428

Accessibility & contrast

On white

8.47
#4E5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4E5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5012
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5012#FFFFFF#000000##FFFFFF
##4E50121.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#574E17
Tritanopia (blue-blind)
#544B44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e5012;
/* rgb */ color: rgb(78, 80, 18);
/* oklch */ color: oklch(41.7% 0.081 111.3);
Tailwind
colors: {
  custom: {
    50: '#828055',
    500: '#4e5012',
    950: '#000000',
  },
}
SCSS
$custom: #4e5012;
$custom-light: #828055;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5012",
  "rgb": {
    "r": 78,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 61.935,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41658,
    "c": 0.08146,
    "h": 111.3
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#4E5012
secondary
#383589
accent
#41E647
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4E5012

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

Preview Lab → · Contrast checker → · Palette generator →

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