#421A7D#421A7D

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

Color values

HEX#421A7D
RGBrgb(66, 26, 125)
HSLhsl(264, 66%, 30%)
HSVhsv(264, 79%, 49%)
CMYKcmyk(47.2%, 79.2%, 0%, 51%)
CIE-LABlab(21.50, 40.91, -48.50)
CIE-LCHlch(21.50, 63.45, 310.14°)
OKLaboklab(34.18% 0.0657 -0.139)
OKLCHoklch(34.18% 0.154 295.3)
XYZxyz(6.3168, 3.3775, 19.7172)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A7D #557D1A
analogous
#1A247D #421A7D #731A7D
triadic
#421A7D #7D421A #1A7D42
tetradic
#421A7D #7D1A24 #557D1A #1A7D73
square
#421A7D #7D1A24 #557D1A #1A7D73
split-complementary
#421A7D #7D731A #247D1A
monochromatic
#0D0519 #270F4A #421A7D #5D25B0 #7A3BD6

Accessibility & contrast

On white

12.53
#421A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#421A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421A7D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A7D#FFFFFF#000000##FFFFFF
##421A7D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#31354B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421a7d;
/* rgb */ color: rgb(66, 26, 125);
/* oklch */ color: oklch(34.2% 0.154 295.3);
Tailwind
colors: {
  custom: {
    50: '#7d5ba4',
    500: '#421a7d',
    950: '#000000',
  },
}
SCSS
$custom: #421a7d;
$custom-light: #7d5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#421a7d",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 264.242,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.15376,
    "h": 295.3
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#421A7D
secondary
#84B142
accent
#E93FA4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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