#421A78#421A78

#421A78 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.148 H 297.0°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#421A78
RGBrgb(66, 26, 120)
HSLhsl(266, 64%, 29%)
HSVhsv(266, 78%, 47%)
CMYKcmyk(45%, 78.3%, 0%, 52.9%)
CIE-LABlab(21.03, 39.53, -46.08)
CIE-LCHlch(21.03, 60.71, 310.63°)
OKLaboklab(33.71% 0.0671 -0.1319)
OKLCHoklch(33.71% 0.148 297)
XYZxyz(6.0054, 3.2530, 18.0771)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A78 #50781A
analogous
#1A2178 #421A78 #711A78
triadic
#421A78 #78421A #1A7842
tetradic
#421A78 #781A21 #50781A #1A7871
square
#421A78 #781A21 #50781A #1A7871
split-complementary
#421A78 #78711A #21781A
monochromatic
#0E0519 #260F46 #421A78 #5E25AA #7B38D4

Accessibility & contrast

On white

12.72
#421A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#421A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421A78
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A78#FFFFFF#000000##FFFFFF
##421A781.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#343348
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421a78;
/* rgb */ color: rgb(66, 26, 120);
/* oklch */ color: oklch(33.7% 0.148 297.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ba0',
    500: '#421a78',
    950: '#000000',
  },
}
SCSS
$custom: #421a78;
$custom-light: #7c5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#421a78",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 265.532,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33705,
    "c": 0.148,
    "h": 297
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#421A78
secondary
#7FAC41
accent
#E740A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421A78

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

Preview Lab → · Contrast checker → · Palette generator →

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