#4E1458#4E1458

#4E1458 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.125 H 321.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#4E1458
RGBrgb(78, 20, 88)
HSLhsl(291, 63%, 21%)
HSVhsv(291, 77%, 35%)
CMYKcmyk(11.4%, 77.3%, 0%, 65.5%)
CIE-LABlab(19.33, 36.96, -27.81)
CIE-LCHlch(19.33, 46.26, 323.05°)
OKLaboklab(32.07% 0.0973 -0.0778)
OKLCHoklch(32.07% 0.125 321.4)
XYZxyz(5.1533, 2.8249, 9.5044)
Luminance0.0283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1458 #1E5814
analogous
#2C1458 #4E1458 #581440
triadic
#4E1458 #584E14 #14584E
tetradic
#4E1458 #582C14 #1E5814 #144058
square
#4E1458 #582C14 #1E5814 #144058
split-complementary
#4E1458 #405814 #14582C
monochromatic
#160619 #220926 #4E1458 #7A1F8A #A62BBC

Accessibility & contrast

On white

13.42
#4E1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4E1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1458
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1458#FFFFFF#000000##FFFFFF
##4E14581.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#1C3156
Tritanopia (blue-blind)
#4F2134
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1458;
/* rgb */ color: rgb(78, 20, 88);
/* oklch */ color: oklch(32.1% 0.125 321.4);
Tailwind
colors: {
  custom: {
    50: '#825887',
    500: '#4e1458',
    950: '#000000',
  },
}
SCSS
$custom: #4e1458;
$custom-light: #825887;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1458",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 291.176,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32074,
    "c": 0.12452,
    "h": 321.4
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#4E1458
secondary
#459038
accent
#E6425A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1458

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

Preview Lab → · Contrast checker → · Palette generator →

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