#421D87#421D87

#421D87 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.162 H 291.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#421D87
RGBrgb(66, 29, 135)
HSLhsl(261, 65%, 32%)
HSVhsv(261, 79%, 53%)
CMYKcmyk(51.1%, 78.5%, 0%, 47.1%)
CIE-LABlab(22.95, 42.27, -52.43)
CIE-LCHlch(22.95, 67.35, 308.88°)
OKLaboklab(35.49% 0.0602 -0.1505)
OKLCHoklch(35.49% 0.162 291.8)
XYZxyz(7.0581, 3.7860, 23.2759)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D87 #62871D
analogous
#1D2D87 #421D87 #771D87
triadic
#421D87 #87421D #1D8742
tetradic
#421D87 #871D2D #62871D #1D8777
square
#421D87 #871D2D #62871D #1D8777
split-complementary
#421D87 #87771D #2D871D
monochromatic
#110722 #291255 #421D87 #5B28B9 #7947D7

Accessibility & contrast

On white

11.95
#421D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#421D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D87
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D87#FFFFFF#000000##FFFFFF
##421D871.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#2B3A51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #421d87;
/* rgb */ color: rgb(66, 29, 135);
/* oklch */ color: oklch(35.5% 0.162 291.8);
Tailwind
colors: {
  custom: {
    50: '#7e5eab',
    500: '#421d87',
    950: '#000000',
  },
}
SCSS
$custom: #421d87;
$custom-light: #7e5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#421d87",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 260.943,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.16215,
    "h": 291.8
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#421D87
secondary
#91B946
accent
#E840AD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421D87

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

Preview Lab → · Contrast checker → · Palette generator →

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