#421A7E#421A7E

#421A7E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.155 H 295.0°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#421A7E
RGBrgb(66, 26, 126)
HSLhsl(264, 66%, 30%)
HSVhsv(264, 79%, 49%)
CMYKcmyk(47.6%, 79.4%, 0%, 50.6%)
CIE-LABlab(21.59, 41.18, -48.98)
CIE-LCHlch(21.59, 63.99, 310.06°)
OKLaboklab(34.27% 0.0654 -0.1404)
OKLCHoklch(34.27% 0.155 295)
XYZxyz(6.3810, 3.4032, 20.0553)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A7E #567E1A
analogous
#1A247E #421A7E #741A7E
triadic
#421A7E #7E421A #1A7E42
tetradic
#421A7E #7E1A24 #567E1A #1A7E74
square
#421A7E #7E1A24 #567E1A #1A7E74
split-complementary
#421A7E #7E741A #247E1A
monochromatic
#0D0519 #27104B #421A7E #5D24B1 #7A3CD7

Accessibility & contrast

On white

12.50
#421A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421A7E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A7E#FFFFFF#000000##FFFFFF
##421A7E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421a7e;
/* rgb */ color: rgb(66, 26, 126);
/* oklch */ color: oklch(34.3% 0.155 295.0);
Tailwind
colors: {
  custom: {
    50: '#7d5ba4',
    500: '#421a7e',
    950: '#000000',
  },
}
SCSS
$custom: #421a7e;
$custom-light: #7d5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#421a7e",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 264,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34271,
    "c": 0.15491,
    "h": 295
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#421A7E
secondary
#85B242
accent
#E93FA5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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