#4E1052#4E1052

#4E1052 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.124 H 325.4°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#4E1052
RGBrgb(78, 16, 82)
HSLhsl(296, 67%, 19%)
HSVhsv(296, 80%, 32%)
CMYKcmyk(4.9%, 80.5%, 0%, 67.8%)
CIE-LABlab(18.36, 37.33, -25.30)
CIE-LCHlch(18.36, 45.10, 325.87°)
OKLaboklab(31.26% 0.1019 -0.0704)
OKLCHoklch(31.26% 0.124 325.4)
XYZxyz(4.8501, 2.5998, 8.2274)
Luminance0.0260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1052 #145210
analogous
#2D1052 #4E1052 #521035
triadic
#4E1052 #524E10 #10524E
tetradic
#4E1052 #522D10 #145210 #103552
square
#4E1052 #522D10 #145210 #103552
split-complementary
#4E1052 #355210 #10522D
monochromatic
#18051A #1D061F #4E1052 #7F1A85 #AF24B8

Accessibility & contrast

On white

13.82
#4E1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4E1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1052
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1052#FFFFFF#000000##FFFFFF
##4E10521.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1052;
/* rgb */ color: rgb(78, 16, 82);
/* oklch */ color: oklch(31.3% 0.124 325.4);
Tailwind
colors: {
  custom: {
    50: '#825683',
    500: '#4e1052',
    950: '#000000',
  },
}
SCSS
$custom: #4e1052;
$custom-light: #825683;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1052",
  "rgb": {
    "r": 78,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 296.364,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31255,
    "c": 0.12388,
    "h": 325.4
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#4E1052
secondary
#388C32
accent
#EA3E48
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4E1052

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

Preview Lab → · Contrast checker → · Palette generator →

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