#4E5217#4E5217

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

Color values

HEX#4E5217
RGBrgb(78, 82, 23)
HSLhsl(64, 56%, 21%)
HSVhsv(64, 72%, 32%)
CMYKcmyk(4.9%, 0%, 72%, 67.8%)
CIE-LABlab(33.38, -10.37, 32.67)
CIE-LCHlch(33.38, 34.27, 107.61°)
OKLaboklab(42.22% -0.0314 0.0736)
OKLCHoklch(42.22% 0.08 113.1)
XYZxyz(6.3140, 7.7163, 1.9672)
Luminance0.0772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5217 #1B1752
analogous
#523817 #4E5217 #305217
triadic
#4E5217 #174E52 #52174E
tetradic
#4E5217 #175238 #1B1752 #521730
square
#4E5217 #175238 #1B1752 #521730
split-complementary
#4E5217 #173052 #381752
monochromatic
#171807 #21220A #4E5217 #7B8224 #A9B232

Accessibility & contrast

On white

8.26
#4E5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E5217
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5217#FFFFFF#000000##FFFFFF
##4E52171.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E0F
Deuteranopia (green-blind)
#584F1B
Tritanopia (blue-blind)
#544D46
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e5217;
/* rgb */ color: rgb(78, 82, 23);
/* oklch */ color: oklch(42.2% 0.080 113.1);
Tailwind
colors: {
  custom: {
    50: '#828258',
    500: '#4e5217',
    950: '#000000',
  },
}
SCSS
$custom: #4e5217;
$custom-light: #828258;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5217",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 64.068,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42216,
    "c": 0.08005,
    "h": 113.1
  },
  "luminance": 0.07716
}

Semantic roles & 50–950 ramp

primary
#4E5217
secondary
#413C89
accent
#48DF53
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4E5217

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

Preview Lab → · Contrast checker → · Palette generator →

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