#4E1748#4E1748

#4E1748 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.4% C 0.105 H 332.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#4E1748
RGBrgb(78, 23, 72)
HSLhsl(307, 54%, 20%)
HSVhsv(307, 71%, 31%)
CMYKcmyk(0%, 70.5%, 7.7%, 69.4%)
CIE-LABlab(18.80, 32.44, -17.79)
CIE-LCHlch(18.80, 36.99, 331.26°)
OKLaboklab(31.37% 0.0931 -0.0487)
OKLCHoklch(31.37% 0.105 332.4)
XYZxyz(4.6180, 2.7007, 6.4077)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1748 #174E1D
analogous
#38174E #4E1748 #4E172D
triadic
#4E1748 #484E17 #17484E
tetradic
#4E1748 #4E3817 #174E1D #172D4E
square
#4E1748 #4E3817 #174E1D #172D4E
split-complementary
#4E1748 #2D4E17 #174E38
monochromatic
#180716 #1F091C #4E1748 #7D2574 #AD339F

Accessibility & contrast

On white

13.64
#4E1748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4E1748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1748
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1748#FFFFFF#000000##FFFFFF
##4E17481.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152949
Deuteranopia (green-blind)
#273147
Tritanopia (blue-blind)
#521C2D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e1748;
/* rgb */ color: rgb(78, 23, 72);
/* oklch */ color: oklch(31.4% 0.105 332.4);
Tailwind
colors: {
  custom: {
    50: '#82597b',
    500: '#4e1748',
    950: '#000000',
  },
}
SCSS
$custom: #4e1748;
$custom-light: #82597b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1748",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 306.545,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31372,
    "c": 0.10505,
    "h": 332.4
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#4E1748
secondary
#3C8544
accent
#DE5A4A
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E1748

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

Preview Lab → · Contrast checker → · Palette generator →

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