#421B78#421B78

#421B78 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.147 H 296.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#421B78
RGBrgb(66, 27, 120)
HSLhsl(265, 63%, 29%)
HSVhsv(265, 78%, 47%)
CMYKcmyk(45%, 77.5%, 0%, 52.9%)
CIE-LABlab(21.20, 39.05, -45.80)
CIE-LCHlch(21.20, 60.19, 310.45°)
OKLaboklab(33.83% 0.0662 -0.1311)
OKLCHoklch(33.83% 0.147 296.8)
XYZxyz(6.0280, 3.2981, 18.0847)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B78 #51781B
analogous
#1B2378 #421B78 #711B78
triadic
#421B78 #78421B #1B7842
tetradic
#421B78 #781B23 #51781B #1B7871
square
#421B78 #781B23 #51781B #1B7871
split-complementary
#421B78 #78711B #23781B
monochromatic
#0E0619 #271046 #421B78 #5D26AA #7A3BD3

Accessibility & contrast

On white

12.65
#421B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#421B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B78
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B78#FFFFFF#000000##FFFFFF
##421B781.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421b78;
/* rgb */ color: rgb(66, 27, 120);
/* oklch */ color: oklch(33.8% 0.147 296.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ca0',
    500: '#421b78',
    950: '#000000',
  },
}
SCSS
$custom: #421b78;
$custom-light: #7c5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#421b78",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 265.161,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33825,
    "c": 0.14685,
    "h": 296.8
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#421B78
secondary
#80AC43
accent
#E641A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421B78

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

Preview Lab → · Contrast checker → · Palette generator →

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