#4E1152#4E1152

#4E1152 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.123 H 325.3°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#4E1152
RGBrgb(78, 17, 82)
HSLhsl(296, 66%, 19%)
HSVhsv(296, 79%, 32%)
CMYKcmyk(4.9%, 79.3%, 0%, 67.8%)
CIE-LABlab(18.50, 36.95, -25.09)
CIE-LCHlch(18.50, 44.67, 325.82°)
OKLaboklab(31.35% 0.1009 -0.0698)
OKLCHoklch(31.35% 0.123 325.3)
XYZxyz(4.8652, 2.6301, 8.2324)
Luminance0.0263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1152 #155211
analogous
#2E1152 #4E1152 #521136
triadic
#4E1152 #524E11 #11524E
tetradic
#4E1152 #522E11 #155211 #113652
square
#4E1152 #522E11 #155211 #113652
split-complementary
#4E1152 #365211 #11522E
monochromatic
#180519 #1E061F #4E1152 #7E1C85 #AE26B7

Accessibility & contrast

On white

13.76
#4E1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4E1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1152
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1152#FFFFFF#000000##FFFFFF
##4E11521.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012854
Deuteranopia (green-blind)
#1F3050
Tritanopia (blue-blind)
#501C30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4e1152;
/* rgb */ color: rgb(78, 17, 82);
/* oklch */ color: oklch(31.4% 0.123 325.3);
Tailwind
colors: {
  custom: {
    50: '#825683',
    500: '#4e1152',
    950: '#000000',
  },
}
SCSS
$custom: #4e1152;
$custom-light: #825683;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1152",
  "rgb": {
    "r": 78,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 296.308,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3135,
    "c": 0.12267,
    "h": 325.3
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#4E1152
secondary
#398B34
accent
#E93F4A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4E1152

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

Preview Lab → · Contrast checker → · Palette generator →

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