#421C78#421C78

#421C78 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.146 H 296.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#421C78
RGBrgb(66, 28, 120)
HSLhsl(265, 62%, 29%)
HSVhsv(265, 77%, 47%)
CMYKcmyk(45%, 76.7%, 0%, 52.9%)
CIE-LABlab(21.37, 38.55, -45.51)
CIE-LCHlch(21.37, 59.65, 310.27°)
OKLaboklab(33.95% 0.0652 -0.1303)
OKLCHoklch(33.95% 0.146 296.6)
XYZxyz(6.0513, 3.3447, 18.0924)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421C78 #52781C
analogous
#1C2478 #421C78 #701C78
triadic
#421C78 #78421C #1C7842
tetradic
#421C78 #781C24 #52781C #1C7870
square
#421C78 #781C24 #52781C #1C7870
split-complementary
#421C78 #78701C #24781C
monochromatic
#0E0619 #271046 #421C78 #5D28AA #7A3DD2

Accessibility & contrast

On white

12.58
#421C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#421C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421C78
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421C78#FFFFFF#000000##FFFFFF
##421C781.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421c78;
/* rgb */ color: rgb(66, 28, 120);
/* oklch */ color: oklch(33.9% 0.146 296.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ca0',
    500: '#421c78',
    950: '#000000',
  },
}
SCSS
$custom: #421c78;
$custom-light: #7c5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#421c78",
  "rgb": {
    "r": 66,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 264.783,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33948,
    "c": 0.14568,
    "h": 296.6
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#421C78
secondary
#81AC44
accent
#E543A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421C78

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

Preview Lab → · Contrast checker → · Palette generator →

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