#421C7D#421C7D

#421C7D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.152 H 295.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#421C7D
RGBrgb(66, 28, 125)
HSLhsl(264, 63%, 30%)
HSVhsv(264, 78%, 49%)
CMYKcmyk(47.2%, 77.6%, 0%, 51%)
CIE-LABlab(21.83, 39.95, -47.95)
CIE-LCHlch(21.83, 62.41, 309.80°)
OKLaboklab(34.41% 0.0639 -0.1374)
OKLCHoklch(34.41% 0.152 295)
XYZxyz(6.3627, 3.4693, 19.7325)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421C7D #577D1C
analogous
#1C277D #421C7D #721C7D
triadic
#421C7D #7D421C #1C7D42
tetradic
#421C7D #7D1C27 #577D1C #1C7D72
square
#421C7D #7D1C27 #577D1C #1C7D72
split-complementary
#421C7D #7D721C #277D1C
monochromatic
#0D0619 #28114B #421C7D #5C27AF #7A3FD4

Accessibility & contrast

On white

12.40
#421C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421C7D
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421C7D#FFFFFF#000000##FFFFFF
##421C7D1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421c7d;
/* rgb */ color: rgb(66, 28, 125);
/* oklch */ color: oklch(34.4% 0.152 295.0);
Tailwind
colors: {
  custom: {
    50: '#7d5ca4',
    500: '#421c7d',
    950: '#000000',
  },
}
SCSS
$custom: #421c7d;
$custom-light: #7d5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#421c7d",
  "rgb": {
    "r": 66,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 263.505,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.34412,
    "c": 0.15155,
    "h": 295
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#421C7D
secondary
#86B144
accent
#E641A6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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