#4E21A4#4E21A4

#4E21A4 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.191 H 290.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#4E21A4
RGBrgb(78, 33, 164)
HSLhsl(261, 66%, 39%)
HSVhsv(261, 80%, 64%)
CMYKcmyk(52.4%, 79.9%, 0%, 35.7%)
CIE-LABlab(27.81, 50.19, -62.26)
CIE-LCHlch(27.81, 79.97, 308.88°)
OKLaboklab(40.05% 0.0672 -0.1789)
OKLCHoklch(40.05% 0.191 290.6)
XYZxyz(10.3847, 5.3873, 35.6074)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E21A4 #77A421
analogous
#2135A4 #4E21A4 #8F21A4
triadic
#4E21A4 #A44E21 #21A44E
tetradic
#4E21A4 #A42135 #77A421 #21A48F
square
#4E21A4 #A42135 #77A421 #21A48F
split-complementary
#4E21A4 #A48F21 #35A421
monochromatic
#1E0C3E #361771 #4E21A4 #672DD5 #8C60DF

Accessibility & contrast

On white

10.11
#4E21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E21A4
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E21A4#FFFFFF#000000##FFFFFF
##4E21A41.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#2F4763
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e21a4;
/* rgb */ color: rgb(78, 33, 164);
/* oklch */ color: oklch(40.1% 0.191 290.6);
Tailwind
colors: {
  custom: {
    50: '#8962c0',
    500: '#4e21a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e21a4;
$custom-light: #8962c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e21a4",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 260.611,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40054,
    "c": 0.19115,
    "h": 290.6
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#4E21A4
secondary
#A1C45D
accent
#E93EAF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4E21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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