#4E1752#4E1752

#4E1752 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 32.0% C 0.115 H 325.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#4E1752
RGBrgb(78, 23, 82)
HSLhsl(296, 56%, 21%)
HSVhsv(296, 72%, 32%)
CMYKcmyk(4.9%, 72%, 0%, 67.8%)
CIE-LABlab(19.40, 34.40, -23.66)
CIE-LCHlch(19.40, 41.75, 325.48°)
OKLaboklab(32% 0.0938 -0.0657)
OKLCHoklch(32% 0.115 325)
XYZxyz(4.9712, 2.8420, 8.2677)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1752 #1B5217
analogous
#301752 #4E1752 #521738
triadic
#4E1752 #524E17 #17524E
tetradic
#4E1752 #523017 #1B5217 #173852
square
#4E1752 #523017 #1B5217 #173852
split-complementary
#4E1752 #385217 #175230
monochromatic
#170718 #210A22 #4E1752 #7B2482 #A932B2

Accessibility & contrast

On white

13.39
#4E1752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4E1752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1752
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1752#FFFFFF#000000##FFFFFF
##4E17521.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2B54
Deuteranopia (green-blind)
#223150
Tritanopia (blue-blind)
#502032
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1752;
/* rgb */ color: rgb(78, 23, 82);
/* oklch */ color: oklch(32.0% 0.115 325.0);
Tailwind
colors: {
  custom: {
    50: '#825983',
    500: '#4e1752',
    950: '#000000',
  },
}
SCSS
$custom: #4e1752;
$custom-light: #825983;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1752",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 295.932,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31997,
    "c": 0.1145,
    "h": 325
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#4E1752
secondary
#41893C
accent
#DF4853
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1752

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

Preview Lab → · Contrast checker → · Palette generator →

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