#421C7E#421C7E

#421C7E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.153 H 294.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#421C7E
RGBrgb(66, 28, 126)
HSLhsl(263, 64%, 30%)
HSVhsv(263, 78%, 49%)
CMYKcmyk(47.6%, 77.8%, 0%, 50.6%)
CIE-LABlab(21.93, 40.23, -48.43)
CIE-LCHlch(21.93, 62.96, 309.71°)
OKLaboklab(34.51% 0.0637 -0.1388)
OKLCHoklch(34.51% 0.153 294.6)
XYZxyz(6.4269, 3.4949, 20.0706)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421C7E #587E1C
analogous
#1C277E #421C7E #731C7E
triadic
#421C7E #7E421C #1C7E42
tetradic
#421C7E #7E1C27 #587E1C #1C7E73
square
#421C7E #7E1C27 #587E1C #1C7E73
split-complementary
#421C7E #7E731C #277E1C
monochromatic
#0E061A #28114C #421C7E #5C27B0 #7A40D5

Accessibility & contrast

On white

12.36
#421C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#421C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421C7E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421C7E#FFFFFF#000000##FFFFFF
##421C7E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#31364C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421c7e;
/* rgb */ color: rgb(66, 28, 126);
/* oklch */ color: oklch(34.5% 0.153 294.6);
Tailwind
colors: {
  custom: {
    50: '#7d5da4',
    500: '#421c7e',
    950: '#000000',
  },
}
SCSS
$custom: #421c7e;
$custom-light: #7d5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#421c7e",
  "rgb": {
    "r": 66,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 263.265,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34506,
    "c": 0.15272,
    "h": 294.6
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#421C7E
secondary
#87B244
accent
#E741A6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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