#4E1D52#4E1D52

#4E1D52 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.105 H 324.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4E1D52
RGBrgb(78, 29, 82)
HSLhsl(295, 48%, 22%)
HSVhsv(295, 65%, 32%)
CMYKcmyk(4.9%, 64.6%, 0%, 67.8%)
CIE-LABlab(20.47, 31.44, -21.96)
CIE-LCHlch(20.47, 38.35, 325.06°)
OKLaboklab(32.77% 0.0856 -0.0608)
OKLCHoklch(32.77% 0.105 324.6)
XYZxyz(5.1041, 3.1079, 8.3120)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D52 #21521D
analogous
#341D52 #4E1D52 #521D3C
triadic
#4E1D52 #524E1D #1D524E
tetradic
#4E1D52 #52341D #21521D #1D3C52
square
#4E1D52 #52341D #21521D #1D3C52
split-complementary
#4E1D52 #3C521D #1D5234
monochromatic
#160817 #230D25 #4E1D52 #792D7F #A43DAC

Accessibility & contrast

On white

12.95
#4E1D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D52
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D52#FFFFFF#000000##FFFFFF
##4E1D521.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152D54
Deuteranopia (green-blind)
#263351
Tritanopia (blue-blind)
#502434
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1d52;
/* rgb */ color: rgb(78, 29, 82);
/* oklch */ color: oklch(32.8% 0.105 324.6);
Tailwind
colors: {
  custom: {
    50: '#815c83',
    500: '#4e1d52',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d52;
$custom-light: #815c83;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d52",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 295.472,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32774,
    "c": 0.10498,
    "h": 324.6
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#4E1D52
secondary
#498744
accent
#D7505B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1D52

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

Preview Lab → · Contrast checker → · Palette generator →

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