#4E1568#4E1568

#4E1568 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.139 H 312.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#4E1568
RGBrgb(78, 21, 104)
HSLhsl(281, 66%, 25%)
HSVhsv(281, 80%, 41%)
CMYKcmyk(25%, 79.8%, 0%, 59.2%)
CIE-LABlab(20.66, 40.06, -36.26)
CIE-LCHlch(20.66, 54.04, 317.85°)
OKLaboklab(33.39% 0.0941 -0.1026)
OKLCHoklch(33.39% 0.139 312.5)
XYZxyz(5.9083, 3.1557, 13.3919)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1568 #2F6815
analogous
#251568 #4E1568 #681559
triadic
#4E1568 #684E15 #15684E
tetradic
#4E1568 #682515 #2F6815 #155968
square
#4E1568 #682515 #2F6815 #155968
split-complementary
#4E1568 #596815 #156825
monochromatic
#130519 #280B35 #4E1568 #741F9B #9A2ACE

Accessibility & contrast

On white

12.87
#4E1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1568
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1568#FFFFFF#000000##FFFFFF
##4E15681.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#093366
Tritanopia (blue-blind)
#4B283E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1568;
/* rgb */ color: rgb(78, 21, 104);
/* oklch */ color: oklch(33.4% 0.139 312.5);
Tailwind
colors: {
  custom: {
    50: '#835994',
    500: '#4e1568',
    950: '#000000',
  },
}
SCSS
$custom: #4e1568;
$custom-light: #835994;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1568",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 281.205,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33393,
    "c": 0.13921,
    "h": 312.5
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#4E1568
secondary
#5A9F3A
accent
#E93E74
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1568

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

Preview Lab → · Contrast checker → · Palette generator →

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