#421F87#421F87

#421F87 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.160 H 291.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#421F87
RGBrgb(66, 31, 135)
HSLhsl(260, 63%, 33%)
HSVhsv(260, 77%, 53%)
CMYKcmyk(51.1%, 77%, 0%, 47.1%)
CIE-LABlab(23.30, 41.29, -51.86)
CIE-LCHlch(23.30, 66.29, 308.52°)
OKLaboklab(35.73% 0.0586 -0.1489)
OKLCHoklch(35.73% 0.16 291.5)
XYZxyz(7.1087, 3.8872, 23.2927)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F87 #64871F
analogous
#1F3087 #421F87 #761F87
triadic
#421F87 #87421F #1F8742
tetradic
#421F87 #871F30 #64871F #1F8776
square
#421F87 #871F30 #64871F #1F8776
split-complementary
#421F87 #87761F #30871F
monochromatic
#110823 #2A1455 #421F87 #5A2AB9 #7A4BD6

Accessibility & contrast

On white

11.82
#421F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#421F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F87
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F87#FFFFFF#000000##FFFFFF
##421F871.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#2B3B52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421f87;
/* rgb */ color: rgb(66, 31, 135);
/* oklch */ color: oklch(35.7% 0.160 291.5);
Tailwind
colors: {
  custom: {
    50: '#7e5fab',
    500: '#421f87',
    950: '#000000',
  },
}
SCSS
$custom: #421f87;
$custom-light: #7e5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#421f87",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 260.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35728,
    "c": 0.16001,
    "h": 291.5
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#421F87
secondary
#93B84A
accent
#E642AF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #421F87

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

Preview Lab → · Contrast checker → · Palette generator →

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