#4E1C5F#4E1C5F

#4E1C5F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.5% C 0.120 H 316.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4E1C5F
RGBrgb(78, 28, 95)
HSLhsl(285, 54%, 24%)
HSVhsv(285, 71%, 37%)
CMYKcmyk(17.9%, 70.5%, 0%, 62.7%)
CIE-LABlab(21.12, 34.82, -29.60)
CIE-LCHlch(21.12, 45.70, 319.63°)
OKLaboklab(33.51% 0.0872 -0.0831)
OKLCHoklch(33.51% 0.12 316.4)
XYZxyz(5.6224, 3.2766, 11.1605)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C5F #2D5F1C
analogous
#2D1C5F #4E1C5F #5F1C4F
triadic
#4E1C5F #5F4E1C #1C5F4E
tetradic
#4E1C5F #5F2D1C #2D5F1C #1C4F5F
square
#4E1C5F #5F2D1C #2D5F1C #1C4F5F
split-complementary
#4E1C5F #4F5F1C #1C5F2D
monochromatic
#130718 #270E30 #4E1C5F #752A8E #9C38BE

Accessibility & contrast

On white

12.69
#4E1C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E1C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C5F
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C5F#FFFFFF#000000##FFFFFF
##4E1C5F1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#1C345D
Tritanopia (blue-blind)
#4D293B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1c5f;
/* rgb */ color: rgb(78, 28, 95);
/* oklch */ color: oklch(33.5% 0.120 316.4);
Tailwind
colors: {
  custom: {
    50: '#825c8d',
    500: '#4e1c5f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c5f;
$custom-light: #825c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c5f",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 284.776,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33512,
    "c": 0.12042,
    "h": 316.4
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#4E1C5F
secondary
#579442
accent
#DE4A6F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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