#4E0C4A#4E0C4A

#4E0C4A is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.4% C 0.121 H 330.8°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#4E0C4A
RGBrgb(78, 12, 74)
HSLhsl(304, 73%, 18%)
HSVhsv(304, 85%, 31%)
CMYKcmyk(0%, 84.6%, 5.1%, 69.4%)
CIE-LABlab(17.35, 37.24, -21.45)
CIE-LCHlch(17.35, 42.97, 330.06°)
OKLaboklab(30.37% 0.106 -0.0592)
OKLCHoklch(30.37% 0.121 330.8)
XYZxyz(4.5094, 2.3774, 6.6986)
Luminance0.0238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E0C4A #0C4E10
analogous
#310C4E #4E0C4A #4E0C29
triadic
#4E0C4A #4A4E0C #0C4A4E
tetradic
#4E0C4A #4E310C #0C4E10 #0C294E
square
#4E0C4A #4E310C #0C4E10 #0C294E
split-complementary
#4E0C4A #294E0C #0C4E31
monochromatic
#1B0419 #1B0419 #4E0C4A #83147C #B81CAF

Accessibility & contrast

On white

14.23
#4E0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4E0C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E0C4A
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E0C4A#FFFFFF#000000##FFFFFF
##4E0C4A1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05254C
Deuteranopia (green-blind)
#212E48
Tritanopia (blue-blind)
#51152B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4e0c4a;
/* rgb */ color: rgb(78, 12, 74);
/* oklch */ color: oklch(30.4% 0.121 330.8);
Tailwind
colors: {
  custom: {
    50: '#82547d',
    500: '#4e0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #4e0c4a;
$custom-light: #82547d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e0c4a",
  "rgb": {
    "r": 78,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 303.636,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.30367,
    "c": 0.12143,
    "h": 330.8
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#4E0C4A
secondary
#2C8A32
accent
#F04338
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4E0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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