#4E21A8#4E21A8

#4E21A8 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.196 H 289.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4E21A8
RGBrgb(78, 33, 168)
HSLhsl(260, 67%, 39%)
HSVhsv(260, 80%, 66%)
CMYKcmyk(53.6%, 80.4%, 0%, 34.1%)
CIE-LABlab(28.21, 51.27, -64.02)
CIE-LCHlch(28.21, 82.03, 308.69°)
OKLaboklab(40.45% 0.0659 -0.1841)
OKLCHoklch(40.45% 0.196 289.7)
XYZxyz(10.7516, 5.5341, 37.5399)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E21A8 #7BA821
analogous
#2138A8 #4E21A8 #9221A8
triadic
#4E21A8 #A84E21 #21A84E
tetradic
#4E21A8 #A82138 #7BA821 #21A892
square
#4E21A8 #A82138 #7BA821 #21A892
split-complementary
#4E21A8 #A89221 #38A821
monochromatic
#1F0D42 #361775 #4E21A8 #6730D6 #8D63E0

Accessibility & contrast

On white

9.97
#4E21A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E21A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E21A8
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E21A8#FFFFFF#000000##FFFFFF
##4E21A81.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#2B4965
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e21a8;
/* rgb */ color: rgb(78, 33, 168);
/* oklch */ color: oklch(40.4% 0.196 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a63c3',
    500: '#4e21a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e21a8;
$custom-light: #8a63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e21a8",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 260,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40446,
    "c": 0.19556,
    "h": 289.7
  },
  "luminance": 0.05535
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E21A8

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

Preview Lab → · Contrast checker → · Palette generator →

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