#4E1562#4E1562

#4E1562 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.133 H 315.6°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#4E1562
RGBrgb(78, 21, 98)
HSLhsl(284, 65%, 23%)
HSVhsv(284, 79%, 38%)
CMYKcmyk(20.4%, 78.6%, 0%, 61.6%)
CIE-LABlab(20.20, 38.71, -33.06)
CIE-LCHlch(20.20, 50.91, 319.50°)
OKLaboklab(32.92% 0.0951 -0.0932)
OKLCHoklch(32.92% 0.133 315.6)
XYZxyz(5.6143, 3.0381, 11.8436)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1562 #296215
analogous
#271562 #4E1562 #62154F
triadic
#4E1562 #624E15 #15624E
tetradic
#4E1562 #622715 #296215 #154F62
square
#4E1562 #622715 #296215 #154F62
split-complementary
#4E1562 #4F6215 #156227
monochromatic
#140519 #260A30 #4E1562 #762094 #9E2BC7

Accessibility & contrast

On white

13.06
#4E1562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4E1562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1562
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1562#FFFFFF#000000##FFFFFF
##4E15621.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#133260
Tritanopia (blue-blind)
#4D263A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1562;
/* rgb */ color: rgb(78, 21, 98);
/* oklch */ color: oklch(32.9% 0.133 315.6);
Tailwind
colors: {
  custom: {
    50: '#83598f',
    500: '#4e1562',
    950: '#000000',
  },
}
SCSS
$custom: #4e1562;
$custom-light: #83598f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1562",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 284.416,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32921,
    "c": 0.13315,
    "h": 315.6
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#4E1562
secondary
#52993A
accent
#E8406C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1562

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

Preview Lab → · Contrast checker → · Palette generator →

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