#421A7F#421A7F

#421A7F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.156 H 294.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#421A7F
RGBrgb(66, 26, 127)
HSLhsl(264, 66%, 30%)
HSVhsv(264, 80%, 50%)
CMYKcmyk(48%, 79.5%, 0%, 50.2%)
CIE-LABlab(21.69, 41.46, -49.46)
CIE-LCHlch(21.69, 64.54, 309.97°)
OKLaboklab(34.37% 0.0651 -0.1418)
OKLCHoklch(34.37% 0.156 294.7)
XYZxyz(6.4459, 3.4292, 20.3968)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A7F #577F1A
analogous
#1A257F #421A7F #741A7F
triadic
#421A7F #7F421A #1A7F42
tetradic
#421A7F #7F1A25 #577F1A #1A7F74
square
#421A7F #7F1A25 #577F1A #1A7F74
split-complementary
#421A7F #7F741A #257F1A
monochromatic
#0D0519 #28104C #421A7F #5C24B2 #7A3CD7

Accessibility & contrast

On white

12.46
#421A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421A7F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A7F#FFFFFF#000000##FFFFFF
##421A7F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#30364C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421a7f;
/* rgb */ color: rgb(66, 26, 127);
/* oklch */ color: oklch(34.4% 0.156 294.7);
Tailwind
colors: {
  custom: {
    50: '#7d5ca5',
    500: '#421a7f',
    950: '#000000',
  },
}
SCSS
$custom: #421a7f;
$custom-light: #7d5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#421a7f",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 263.762,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.34367,
    "c": 0.15606,
    "h": 294.7
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#421A7F
secondary
#86B342
accent
#E93FA6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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