#4E5218#4E5218

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

Color values

HEX#4E5218
RGBrgb(78, 82, 24)
HSLhsl(64, 55%, 21%)
HSVhsv(64, 71%, 32%)
CMYKcmyk(4.9%, 0%, 70.7%, 67.8%)
CIE-LABlab(33.39, -10.29, 32.21)
CIE-LCHlch(33.39, 33.81, 107.73°)
OKLaboklab(42.23% -0.0311 0.0729)
OKLCHoklch(42.23% 0.079 113.1)
XYZxyz(6.3242, 7.7204, 2.0210)
Luminance0.0772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5218 #1C1852
analogous
#523918 #4E5218 #315218
triadic
#4E5218 #184E52 #52184E
tetradic
#4E5218 #185239 #1C1852 #521831
square
#4E5218 #185239 #1C1852 #521831
split-complementary
#4E5218 #183152 #391852
monochromatic
#171807 #21230A #4E5218 #7B8126 #A8B134

Accessibility & contrast

On white

8.25
#4E5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E5218
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5218#FFFFFF#000000##FFFFFF
##4E52181.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E10
Deuteranopia (green-blind)
#584F1C
Tritanopia (blue-blind)
#534D46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e5218;
/* rgb */ color: rgb(78, 82, 24);
/* oklch */ color: oklch(42.2% 0.079 113.1);
Tailwind
colors: {
  custom: {
    50: '#828258',
    500: '#4e5218',
    950: '#000000',
  },
}
SCSS
$custom: #4e5218;
$custom-light: #828258;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5218",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 64.138,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42226,
    "c": 0.0792,
    "h": 113.1
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#4E5218
secondary
#423D89
accent
#4ADE54
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4E5218

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

Preview Lab → · Contrast checker → · Palette generator →

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