#4E1A5D#4E1A5D

#4E1A5D is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.121 H 317.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#4E1A5D
RGBrgb(78, 26, 93)
HSLhsl(287, 56%, 23%)
HSVhsv(287, 72%, 36%)
CMYKcmyk(16.1%, 72%, 0%, 63.5%)
CIE-LABlab(20.63, 35.35, -29.06)
CIE-LCHlch(20.63, 45.76, 320.58°)
OKLaboklab(33.12% 0.0898 -0.0815)
OKLCHoklch(33.12% 0.121 317.8)
XYZxyz(5.4868, 3.1490, 10.6726)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A5D #295D1A
analogous
#2C1A5D #4E1A5D #5D1A4A
triadic
#4E1A5D #5D4E1A #1A5D4E
tetradic
#4E1A5D #5D2C1A #295D1A #1A4A5D
square
#4E1A5D #5D2C1A #295D1A #1A4A5D
split-complementary
#4E1A5D #4A5D1A #1A5D2C
monochromatic
#140718 #260D2D #4E1A5D #76278D #9E35BD

Accessibility & contrast

On white

12.89
#4E1A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A5D
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A5D#FFFFFF#000000##FFFFFF
##4E1A5D1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#1C335B
Tritanopia (blue-blind)
#4E2639
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1a5d;
/* rgb */ color: rgb(78, 26, 93);
/* oklch */ color: oklch(33.1% 0.121 317.8);
Tailwind
colors: {
  custom: {
    50: '#825b8b',
    500: '#4e1a5d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a5d;
$custom-light: #825b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a5d",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 286.567,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33117,
    "c": 0.12126,
    "h": 317.8
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#4E1A5D
secondary
#529340
accent
#E0486A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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