#4E1566#4E1566

#4E1566 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.137 H 313.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4E1566
RGBrgb(78, 21, 102)
HSLhsl(282, 66%, 24%)
HSVhsv(282, 79%, 40%)
CMYKcmyk(23.5%, 79.4%, 0%, 60%)
CIE-LABlab(20.50, 39.61, -35.20)
CIE-LCHlch(20.50, 52.99, 318.37°)
OKLaboklab(33.23% 0.0945 -0.0994)
OKLCHoklch(33.23% 0.137 313.5)
XYZxyz(5.8079, 3.1155, 12.8632)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1566 #2D6615
analogous
#261566 #4E1566 #661556
triadic
#4E1566 #664E15 #15664E
tetradic
#4E1566 #662615 #2D6615 #155666
square
#4E1566 #662615 #2D6615 #155666
split-complementary
#4E1566 #566615 #156626
monochromatic
#130519 #270B33 #4E1566 #751F99 #9C2ACC

Accessibility & contrast

On white

12.94
#4E1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1566
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1566#FFFFFF#000000##FFFFFF
##4E15661.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#0D3364
Tritanopia (blue-blind)
#4C273D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1566;
/* rgb */ color: rgb(78, 21, 102);
/* oklch */ color: oklch(33.2% 0.137 313.5);
Tailwind
colors: {
  custom: {
    50: '#835992',
    500: '#4e1566',
    950: '#000000',
  },
}
SCSS
$custom: #4e1566;
$custom-light: #835992;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1566",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 282.222,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33234,
    "c": 0.13718,
    "h": 313.5
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#4E1566
secondary
#579D3A
accent
#E93F71
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1566

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

Preview Lab → · Contrast checker → · Palette generator →

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