#421A81#421A81

#421A81 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.158 H 294.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#421A81
RGBrgb(66, 26, 129)
HSLhsl(263, 66%, 30%)
HSVhsv(263, 80%, 51%)
CMYKcmyk(48.8%, 79.8%, 0%, 49.4%)
CIE-LABlab(21.88, 42.01, -50.41)
CIE-LCHlch(21.88, 65.62, 309.81°)
OKLaboklab(34.56% 0.0645 -0.1446)
OKLCHoklch(34.56% 0.158 294)
XYZxyz(6.5775, 3.4818, 21.0901)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A81 #59811A
analogous
#1A2581 #421A81 #751A81
triadic
#421A81 #81421A #1A8142
tetradic
#421A81 #811A25 #59811A #1A8175
square
#421A81 #811A25 #59811A #1A8175
split-complementary
#421A81 #81751A #25811A
monochromatic
#0E051B #28104E #421A81 #5C24B4 #793DD8

Accessibility & contrast

On white

12.38
#421A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#421A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421A81
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A81#FFFFFF#000000##FFFFFF
##421A811.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#2F374D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421a81;
/* rgb */ color: rgb(66, 26, 129);
/* oklch */ color: oklch(34.6% 0.158 294.0);
Tailwind
colors: {
  custom: {
    50: '#7e5ca7',
    500: '#421a81',
    950: '#000000',
  },
}
SCSS
$custom: #421a81;
$custom-light: #7e5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#421a81",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 263.301,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3456,
    "c": 0.15835,
    "h": 294
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#421A81
secondary
#88B542
accent
#E93EA7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #421A81

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

Preview Lab → · Contrast checker → · Palette generator →

#421A81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva