#4E21A5#4E21A5

#4E21A5 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.192 H 290.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4E21A5
RGBrgb(78, 33, 165)
HSLhsl(260, 67%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(52.7%, 80%, 0%, 35.3%)
CIE-LABlab(27.91, 50.46, -62.70)
CIE-LCHlch(27.91, 80.48, 308.83°)
OKLaboklab(40.15% 0.0669 -0.1802)
OKLCHoklch(40.15% 0.192 290.4)
XYZxyz(10.4753, 5.4236, 36.0849)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E21A5 #78A521
analogous
#2136A5 #4E21A5 #9021A5
triadic
#4E21A5 #A54E21 #21A54E
tetradic
#4E21A5 #A52136 #78A521 #21A590
square
#4E21A5 #A52136 #78A521 #21A590
split-complementary
#4E21A5 #A59021 #36A521
monochromatic
#1E0D3F #361772 #4E21A5 #672ED5 #8C61DF

Accessibility & contrast

On white

10.07
#4E21A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E21A5
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E21A5#FFFFFF#000000##FFFFFF
##4E21A51.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#2E4763
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e21a5;
/* rgb */ color: rgb(78, 33, 165);
/* oklch */ color: oklch(40.2% 0.192 290.4);
Tailwind
colors: {
  custom: {
    50: '#8963c1',
    500: '#4e21a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e21a5;
$custom-light: #8963c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e21a5",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 260.455,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40151,
    "c": 0.19226,
    "h": 290.4
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#4E21A5
secondary
#A1C45E
accent
#EA3EAF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4E21A5

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

Preview Lab → · Contrast checker → · Palette generator →

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