#4E1A52#4E1A52

#4E1A52 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.4% C 0.110 H 324.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#4E1A52
RGBrgb(78, 26, 82)
HSLhsl(296, 52%, 21%)
HSVhsv(296, 68%, 32%)
CMYKcmyk(4.9%, 68.3%, 0%, 67.8%)
CIE-LABlab(19.92, 32.96, -22.84)
CIE-LCHlch(19.92, 40.10, 325.28°)
OKLaboklab(32.37% 0.0898 -0.0633)
OKLCHoklch(32.37% 0.11 324.8)
XYZxyz(5.0341, 2.9680, 8.2887)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A52 #1E521A
analogous
#321A52 #4E1A52 #521A3A
triadic
#4E1A52 #524E1A #1A524E
tetradic
#4E1A52 #52321A #1E521A #1A3A52
square
#4E1A52 #52321A #1E521A #1A3A52
split-complementary
#4E1A52 #3A521A #1A5232
monochromatic
#160717 #220B24 #4E1A52 #7A2980 #A637AF

Accessibility & contrast

On white

13.18
#4E1A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4E1A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A52
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A52#FFFFFF#000000##FFFFFF
##4E1A521.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#243251
Tritanopia (blue-blind)
#502233
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1a52;
/* rgb */ color: rgb(78, 26, 82);
/* oklch */ color: oklch(32.4% 0.110 324.8);
Tailwind
colors: {
  custom: {
    50: '#825b83',
    500: '#4e1a52',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a52;
$custom-light: #825b83;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a52",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 295.714,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3237,
    "c": 0.1099,
    "h": 324.8
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#4E1A52
secondary
#458840
accent
#DB4C57
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1A52

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

Preview Lab → · Contrast checker → · Palette generator →

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