#4E1D5B#4E1D5B

#4E1D5B is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.115 H 318.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4E1D5B
RGBrgb(78, 29, 91)
HSLhsl(287, 52%, 24%)
HSVhsv(287, 68%, 36%)
CMYKcmyk(14.3%, 68.1%, 0%, 64.3%)
CIE-LABlab(21.03, 33.41, -27.09)
CIE-LCHlch(21.03, 43.01, 320.96°)
OKLaboklab(33.36% 0.0859 -0.0757)
OKLCHoklch(33.36% 0.115 318.6)
XYZxyz(5.4693, 3.2540, 10.2355)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D5B #2A5B1D
analogous
#2F1D5B #4E1D5B #5B1D49
triadic
#4E1D5B #5B4E1D #1D5B4E
tetradic
#4E1D5B #5B2F1D #2A5B1D #1D495B
square
#4E1D5B #5B2F1D #2A5B1D #1D495B
split-complementary
#4E1D5B #495B1D #1D5B2F
monochromatic
#140717 #260E2D #4E1D5B #762C89 #9E3BB8

Accessibility & contrast

On white

12.72
#4E1D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1D5B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D5B#FFFFFF#000000##FFFFFF
##4E1D5B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2F5D
Deuteranopia (green-blind)
#203459
Tritanopia (blue-blind)
#4E2839
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1d5b;
/* rgb */ color: rgb(78, 29, 91);
/* oklch */ color: oklch(33.4% 0.115 318.6);
Tailwind
colors: {
  custom: {
    50: '#825d8a',
    500: '#4e1d5b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d5b;
$custom-light: #825d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d5b",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 91
  },
  "hsl": {
    "h": 287.419,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33364,
    "c": 0.11455,
    "h": 318.6
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#4E1D5B
secondary
#549044
accent
#DB4D6B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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