#4E1A68#4E1A68

#4E1A68 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.9% C 0.133 H 311.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#4E1A68
RGBrgb(78, 26, 104)
HSLhsl(280, 60%, 25%)
HSVhsv(280, 75%, 41%)
CMYKcmyk(25%, 75%, 0%, 59.2%)
CIE-LABlab(21.42, 37.88, -35.02)
CIE-LCHlch(21.42, 51.59, 317.25°)
OKLaboklab(33.94% 0.0888 -0.0989)
OKLCHoklch(33.94% 0.133 311.9)
XYZxyz(6.0095, 3.3581, 13.4256)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A68 #34681A
analogous
#271A68 #4E1A68 #681A5B
triadic
#4E1A68 #684E1A #1A684E
tetradic
#4E1A68 #68271A #34681A #1A5B68
square
#4E1A68 #68271A #34681A #1A5B68
split-complementary
#4E1A68 #5B681A #1A6827
monochromatic
#120618 #290E37 #4E1A68 #732699 #9732CA

Accessibility & contrast

On white

12.56
#4E1A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E1A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A68
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A68#FFFFFF#000000##FFFFFF
##4E1A681.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#103466
Tritanopia (blue-blind)
#4B2B3F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1a68;
/* rgb */ color: rgb(78, 26, 104);
/* oklch */ color: oklch(33.9% 0.133 311.9);
Tailwind
colors: {
  custom: {
    50: '#835c94',
    500: '#4e1a68',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a68;
$custom-light: #835c94;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a68",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33938,
    "c": 0.13295,
    "h": 311.9
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#4E1A68
secondary
#5F9D40
accent
#E34579
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1A68

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

Preview Lab → · Contrast checker → · Palette generator →

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