#421C87#421C87

#421C87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.163 H 292.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#421C87
RGBrgb(66, 28, 135)
HSLhsl(261, 66%, 32%)
HSVhsv(261, 79%, 53%)
CMYKcmyk(51.1%, 79.3%, 0%, 47.1%)
CIE-LABlab(22.79, 42.75, -52.70)
CIE-LCHlch(22.79, 67.86, 309.05°)
OKLaboklab(35.37% 0.0611 -0.1513)
OKLCHoklch(35.37% 0.163 292)
XYZxyz(7.0340, 3.7378, 23.2678)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421C87 #61871C
analogous
#1C2C87 #421C87 #771C87
triadic
#421C87 #87421C #1C8742
tetradic
#421C87 #871C2C #61871C #1C8777
square
#421C87 #871C2C #61871C #1C8777
split-complementary
#421C87 #87771C #2C871C
monochromatic
#100722 #291154 #421C87 #5B27BA #7945D8

Accessibility & contrast

On white

12.02
#421C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#421C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421C87
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421C87#FFFFFF#000000##FFFFFF
##421C871.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421c87;
/* rgb */ color: rgb(66, 28, 135);
/* oklch */ color: oklch(35.4% 0.163 292.0);
Tailwind
colors: {
  custom: {
    50: '#7e5dab',
    500: '#421c87',
    950: '#000000',
  },
}
SCSS
$custom: #421c87;
$custom-light: #7e5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#421c87",
  "rgb": {
    "r": 66,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 261.308,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3537,
    "c": 0.16319,
    "h": 292
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#421C87
secondary
#90BA45
accent
#E93FAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421C87

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

Preview Lab → · Contrast checker → · Palette generator →

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