#4E21AE#4E21AE

#4E21AE is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.0% C 0.202 H 288.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4E21AE
RGBrgb(78, 33, 174)
HSLhsl(259, 68%, 41%)
HSVhsv(259, 81%, 68%)
CMYKcmyk(55.2%, 81%, 0%, 31.8%)
CIE-LABlab(28.81, 52.90, -66.64)
CIE-LCHlch(28.81, 85.09, 308.44°)
OKLaboklab(41.04% 0.0639 -0.1918)
OKLCHoklch(41.04% 0.202 288.4)
XYZxyz(11.3235, 5.7628, 40.5519)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E21AE #81AE21
analogous
#213AAE #4E21AE #9421AE
triadic
#4E21AE #AE4E21 #21AE4E
tetradic
#4E21AE #AE213A #81AE21 #21AE94
square
#4E21AE #AE213A #81AE21 #21AE94
split-complementary
#4E21AE #AE9421 #3AAE21
monochromatic
#200D47 #37177B #4E21AE #6834D8 #8E67E2

Accessibility & contrast

On white

9.76
#4E21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E21AE
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E21AE#FFFFFF#000000##FFFFFF
##4E21AE1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B2
Deuteranopia (green-blind)
#0040AB
Tritanopia (blue-blind)
#254B68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e21ae;
/* rgb */ color: rgb(78, 33, 174);
/* oklch */ color: oklch(41.0% 0.202 288.4);
Tailwind
colors: {
  custom: {
    50: '#8b63c7',
    500: '#4e21ae',
    950: '#000000',
  },
}
SCSS
$custom: #4e21ae;
$custom-light: #8b63c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e21ae",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 259.149,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41043,
    "c": 0.20215,
    "h": 288.4
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#4E21AE
secondary
#A8C863
accent
#EB3DB3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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