#4E1768#4E1768

#4E1768 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.137 H 312.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4E1768
RGBrgb(78, 23, 104)
HSLhsl(281, 64%, 25%)
HSVhsv(281, 78%, 41%)
CMYKcmyk(25%, 77.9%, 0%, 59.2%)
CIE-LABlab(20.95, 39.22, -35.79)
CIE-LCHlch(20.95, 53.10, 317.62°)
OKLaboklab(33.6% 0.0921 -0.1012)
OKLCHoklch(33.6% 0.137 312.3)
XYZxyz(5.9465, 3.2321, 13.4046)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1768 #316817
analogous
#261768 #4E1768 #681759
triadic
#4E1768 #684E17 #17684E
tetradic
#4E1768 #682617 #316817 #175968
square
#4E1768 #682617 #316817 #175968
split-complementary
#4E1768 #596817 #176826
monochromatic
#130619 #280C36 #4E1768 #74229A #992DCC

Accessibility & contrast

On white

12.76
#4E1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1768
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1768#FFFFFF#000000##FFFFFF
##4E17681.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#0C3366
Tritanopia (blue-blind)
#4B293E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1768;
/* rgb */ color: rgb(78, 23, 104);
/* oklch */ color: oklch(33.6% 0.137 312.3);
Tailwind
colors: {
  custom: {
    50: '#835a94',
    500: '#4e1768',
    950: '#000000',
  },
}
SCSS
$custom: #4e1768;
$custom-light: #835a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1768",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 280.741,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33601,
    "c": 0.13681,
    "h": 312.3
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#4E1768
secondary
#5C9E3D
accent
#E74176
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1768

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

Preview Lab → · Contrast checker → · Palette generator →

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