#4E21A7#4E21A7

#4E21A7 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.194 H 289.9°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#4E21A7
RGBrgb(78, 33, 167)
HSLhsl(260, 67%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(53.3%, 80.2%, 0%, 34.5%)
CIE-LABlab(28.11, 51.00, -63.58)
CIE-LCHlch(28.11, 81.51, 308.73°)
OKLaboklab(40.35% 0.0662 -0.1828)
OKLCHoklch(40.35% 0.194 289.9)
XYZxyz(10.6588, 5.4970, 37.0511)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E21A7 #7AA721
analogous
#2137A7 #4E21A7 #9121A7
triadic
#4E21A7 #A74E21 #21A74E
tetradic
#4E21A7 #A72137 #7AA721 #21A791
square
#4E21A7 #A72137 #7AA721 #21A791
split-complementary
#4E21A7 #A79121 #37A721
monochromatic
#1E0D41 #361774 #4E21A7 #672FD6 #8D62E0

Accessibility & contrast

On white

10.00
#4E21A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E21A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E21A7
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E21A7#FFFFFF#000000##FFFFFF
##4E21A71.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#2C4864
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e21a7;
/* rgb */ color: rgb(78, 33, 167);
/* oklch */ color: oklch(40.3% 0.194 289.9);
Tailwind
colors: {
  custom: {
    50: '#8a63c2',
    500: '#4e21a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e21a7;
$custom-light: #8a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e21a7",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 260.149,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40348,
    "c": 0.19447,
    "h": 289.9
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#4E21A7
secondary
#A3C55F
accent
#EA3EB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E21A7

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

Preview Lab → · Contrast checker → · Palette generator →

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