#421D78#421D78

#421D78 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.144 H 296.4°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#421D78
RGBrgb(66, 29, 120)
HSLhsl(264, 61%, 29%)
HSVhsv(264, 76%, 47%)
CMYKcmyk(45%, 75.8%, 0%, 52.9%)
CIE-LABlab(21.55, 38.05, -45.22)
CIE-LCHlch(21.55, 59.10, 310.08°)
OKLaboklab(34.07% 0.0643 -0.1294)
OKLCHoklch(34.07% 0.144 296.4)
XYZxyz(6.0754, 3.3929, 18.1005)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D78 #53781D
analogous
#1D2578 #421D78 #701D78
triadic
#421D78 #78421D #1D7842
tetradic
#421D78 #781D25 #53781D #1D7870
square
#421D78 #781D25 #53781D #1D7870
split-complementary
#421D78 #78701D #25781D
monochromatic
#0E0619 #271147 #421D78 #5D29A9 #7A3FD1

Accessibility & contrast

On white

12.51
#421D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#421D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D78
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D78#FFFFFF#000000##FFFFFF
##421D781.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#343449
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421d78;
/* rgb */ color: rgb(66, 29, 120);
/* oklch */ color: oklch(34.1% 0.144 296.4);
Tailwind
colors: {
  custom: {
    50: '#7c5da0',
    500: '#421d78',
    950: '#000000',
  },
}
SCSS
$custom: #421d78;
$custom-light: #7c5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#421d78",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 264.396,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34074,
    "c": 0.14448,
    "h": 296.4
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#421D78
secondary
#82AC45
accent
#E444A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421D78

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

Preview Lab → · Contrast checker → · Palette generator →

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