#4E1864#4E1864

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

Color values

HEX#4E1864
RGBrgb(78, 24, 100)
HSLhsl(283, 61%, 24%)
HSVhsv(283, 76%, 39%)
CMYKcmyk(22%, 76%, 0%, 60.8%)
CIE-LABlab(20.80, 37.86, -33.40)
CIE-LCHlch(20.80, 50.49, 318.58°)
OKLaboklab(33.4% 0.0916 -0.0942)
OKLCHoklch(33.4% 0.131 314.2)
XYZxyz(5.7684, 3.1933, 12.3666)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1864 #2E6418
analogous
#281864 #4E1864 #641854
triadic
#4E1864 #644E18 #18644E
tetradic
#4E1864 #642818 #2E6418 #185464
square
#4E1864 #642818 #2E6418 #185464
split-complementary
#4E1864 #546418 #186428
monochromatic
#130619 #280C33 #4E1864 #742495 #9B30C7

Accessibility & contrast

On white

12.82
#4E1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E1864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1864
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1864#FFFFFF#000000##FFFFFF
##4E18641.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#143362
Tritanopia (blue-blind)
#4C283C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1864;
/* rgb */ color: rgb(78, 24, 100);
/* oklch */ color: oklch(33.4% 0.131 314.2);
Tailwind
colors: {
  custom: {
    50: '#835b91',
    500: '#4e1864',
    950: '#000000',
  },
}
SCSS
$custom: #4e1864;
$custom-light: #835b91;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1864",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 282.632,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33399,
    "c": 0.13138,
    "h": 314.2
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#4E1864
secondary
#589A3E
accent
#E44372
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #4E1864

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

Preview Lab → · Contrast checker → · Palette generator →

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