#4E5018#4E5018

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

Color values

HEX#4E5018
RGBrgb(78, 80, 24)
HSLhsl(62, 54%, 20%)
HSVhsv(62, 70%, 31%)
CMYKcmyk(2.5%, 0%, 70%, 68.6%)
CIE-LABlab(32.75, -9.13, 31.54)
CIE-LCHlch(32.75, 32.83, 106.14°)
OKLaboklab(41.71% -0.0278 0.0714)
OKLCHoklch(41.71% 0.077 111.3)
XYZxyz(6.1756, 7.4231, 1.9715)
Luminance0.0742 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5018 #1A1850
analogous
#503618 #4E5018 #325018
triadic
#4E5018 #184E50 #50184E
tetradic
#4E5018 #185036 #1A1850 #501832
square
#4E5018 #185036 #1A1850 #501832
split-complementary
#4E5018 #183250 #361850
monochromatic
#171807 #20210A #4E5018 #7C7F26 #AAAE34

Accessibility & contrast

On white

8.45
#4E5018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E5018
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5018#FFFFFF#000000##FFFFFF
##4E50181.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C11
Deuteranopia (green-blind)
#574E1C
Tritanopia (blue-blind)
#544B44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e5018;
/* rgb */ color: rgb(78, 80, 24);
/* oklch */ color: oklch(41.7% 0.077 111.3);
Tailwind
colors: {
  custom: {
    50: '#828058',
    500: '#4e5018',
    950: '#000000',
  },
}
SCSS
$custom: #4e5018;
$custom-light: #828058;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5018",
  "rgb": {
    "r": 78,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 62.143,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41713,
    "c": 0.07664,
    "h": 111.3
  },
  "luminance": 0.07423
}

Semantic roles & 50–950 ramp

primary
#4E5018
secondary
#403D87
accent
#4BDD50
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4E5018

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

Preview Lab → · Contrast checker → · Palette generator →

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