#4E1A5C#4E1A5C

#4E1A5C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.120 H 318.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4E1A5C
RGBrgb(78, 26, 92)
HSLhsl(287, 56%, 23%)
HSVhsv(287, 72%, 36%)
CMYKcmyk(15.2%, 71.7%, 0%, 63.9%)
CIE-LABlab(20.56, 35.12, -28.50)
CIE-LCHlch(20.56, 45.23, 320.94°)
OKLaboklab(33.05% 0.0899 -0.0798)
OKLCHoklch(33.05% 0.12 318.4)
XYZxyz(5.4428, 3.1314, 10.4409)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A5C #285C1A
analogous
#2D1A5C #4E1A5C #5C1A49
triadic
#4E1A5C #5C4E1A #1A5C4E
tetradic
#4E1A5C #5C2D1A #285C1A #1A495C
square
#4E1A5C #5C2D1A #285C1A #1A495C
split-complementary
#4E1A5C #495C1A #1A5C2D
monochromatic
#140718 #260D2C #4E1A5C #76278C #9F35BB

Accessibility & contrast

On white

12.91
#4E1A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A5C
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A5C#FFFFFF#000000##FFFFFF
##4E1A5C1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5E
Deuteranopia (green-blind)
#1D335A
Tritanopia (blue-blind)
#4E2638
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1a5c;
/* rgb */ color: rgb(78, 26, 92);
/* oklch */ color: oklch(33.0% 0.120 318.4);
Tailwind
colors: {
  custom: {
    50: '#825b8a',
    500: '#4e1a5c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a5c;
$custom-light: #825b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a5c",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 287.273,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33046,
    "c": 0.12021,
    "h": 318.4
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#4E1A5C
secondary
#519240
accent
#DF4969
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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