#4E21A6#4E21A6

#4E21A6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.193 H 290.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#4E21A6
RGBrgb(78, 33, 166)
HSLhsl(260, 67%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(53%, 80.1%, 0%, 34.9%)
CIE-LABlab(28.01, 50.73, -63.14)
CIE-LCHlch(28.01, 81.00, 308.78°)
OKLaboklab(40.25% 0.0666 -0.1815)
OKLCHoklch(40.25% 0.193 290.1)
XYZxyz(10.5667, 5.4601, 36.5661)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E21A6 #79A621
analogous
#2137A6 #4E21A6 #9121A6
triadic
#4E21A6 #A64E21 #21A64E
tetradic
#4E21A6 #A62137 #79A621 #21A691
square
#4E21A6 #A62137 #79A621 #21A691
split-complementary
#4E21A6 #A69121 #37A621
monochromatic
#1E0D40 #361773 #4E21A6 #672FD6 #8C62E0

Accessibility & contrast

On white

10.04
#4E21A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E21A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E21A6
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E21A6#FFFFFF#000000##FFFFFF
##4E21A61.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#2D4864
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e21a6;
/* rgb */ color: rgb(78, 33, 166);
/* oklch */ color: oklch(40.2% 0.193 290.1);
Tailwind
colors: {
  custom: {
    50: '#8a63c2',
    500: '#4e21a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e21a6;
$custom-light: #8a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e21a6",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 260.301,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40249,
    "c": 0.19335,
    "h": 290.1
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#4E21A6
secondary
#A2C55E
accent
#EA3EB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4E21A6

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

Preview Lab → · Contrast checker → · Palette generator →

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