#4E5118#4E5118

#4E5118 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.0% C 0.078 H 112.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4E5118
RGBrgb(78, 81, 24)
HSLhsl(63, 54%, 21%)
HSVhsv(63, 70%, 32%)
CMYKcmyk(3.7%, 0%, 70.4%, 68.2%)
CIE-LABlab(33.07, -9.71, 31.87)
CIE-LCHlch(33.07, 33.32, 106.94°)
OKLaboklab(41.97% -0.0294 0.0721)
OKLCHoklch(41.97% 0.078 112.2)
XYZxyz(6.2494, 7.5706, 1.9961)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5118 #1B1851
analogous
#513718 #4E5118 #315118
triadic
#4E5118 #184E51 #51184E
tetradic
#4E5118 #185137 #1B1851 #511831
square
#4E5118 #185137 #1B1851 #511831
split-complementary
#4E5118 #183151 #371851
monochromatic
#171807 #21220A #4E5118 #7B8026 #A9AF34

Accessibility & contrast

On white

8.35
#4E5118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4E5118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5118
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5118#FFFFFF#000000##FFFFFF
##4E51181.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D10
Deuteranopia (green-blind)
#584E1C
Tritanopia (blue-blind)
#544C45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e5118;
/* rgb */ color: rgb(78, 81, 24);
/* oklch */ color: oklch(42.0% 0.078 112.2);
Tailwind
colors: {
  custom: {
    50: '#828158',
    500: '#4e5118',
    950: '#000000',
  },
}
SCSS
$custom: #4e5118;
$custom-light: #828158;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5118",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 63.158,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41969,
    "c": 0.07791,
    "h": 112.2
  },
  "luminance": 0.07571
}

Semantic roles & 50–950 ramp

primary
#4E5118
secondary
#413D88
accent
#4ADE52
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4E5118

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

Preview Lab → · Contrast checker → · Palette generator →

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