#421E78#421E78

#421E78 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.143 H 296.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#421E78
RGBrgb(66, 30, 120)
HSLhsl(264, 60%, 29%)
HSVhsv(264, 75%, 47%)
CMYKcmyk(45%, 75%, 0%, 52.9%)
CIE-LABlab(21.74, 37.53, -44.92)
CIE-LCHlch(21.74, 58.54, 309.88°)
OKLaboklab(34.2% 0.0633 -0.1285)
OKLCHoklch(34.2% 0.143 296.2)
XYZxyz(6.1003, 3.4427, 18.1088)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421E78 #54781E
analogous
#1E2778 #421E78 #6F1E78
triadic
#421E78 #78421E #1E7842
tetradic
#421E78 #781E27 #54781E #1E786F
square
#421E78 #781E27 #54781E #1E786F
split-complementary
#421E78 #786F1E #27781E
monochromatic
#0D0618 #271247 #421E78 #5D2AA9 #7A41CF

Accessibility & contrast

On white

12.44
#421E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#421E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421E78
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421E78#FFFFFF#000000##FFFFFF
##421E781.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#343549
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421e78;
/* rgb */ color: rgb(66, 30, 120);
/* oklch */ color: oklch(34.2% 0.143 296.2);
Tailwind
colors: {
  custom: {
    50: '#7c5da0',
    500: '#421e78',
    950: '#000000',
  },
}
SCSS
$custom: #421e78;
$custom-light: #7c5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#421e78",
  "rgb": {
    "r": 66,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 264,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34203,
    "c": 0.14326,
    "h": 296.2
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#421E78
secondary
#83AC46
accent
#E345A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421E78

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

Preview Lab → · Contrast checker → · Palette generator →

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