#421B87#421B87

#421B87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.164 H 292.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#421B87
RGBrgb(66, 27, 135)
HSLhsl(262, 67%, 32%)
HSVhsv(262, 80%, 53%)
CMYKcmyk(51.1%, 80%, 0%, 47.1%)
CIE-LABlab(22.62, 43.21, -52.97)
CIE-LCHlch(22.62, 68.36, 309.21°)
OKLaboklab(35.26% 0.0619 -0.1521)
OKLCHoklch(35.26% 0.164 292.1)
XYZxyz(7.0106, 3.6911, 23.2600)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B87 #60871B
analogous
#1B2A87 #421B87 #781B87
triadic
#421B87 #87421B #1B8742
tetradic
#421B87 #871B2A #60871B #1B8778
square
#421B87 #871B2A #60871B #1B8778
split-complementary
#421B87 #87781B #2A871B
monochromatic
#100721 #291154 #421B87 #5B25BA #7943D9

Accessibility & contrast

On white

12.08
#421B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#421B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B87
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B87#FFFFFF#000000##FFFFFF
##421B871.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.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: #421b87;
/* rgb */ color: rgb(66, 27, 135);
/* oklch */ color: oklch(35.3% 0.164 292.1);
Tailwind
colors: {
  custom: {
    50: '#7e5dab',
    500: '#421b87',
    950: '#000000',
  },
}
SCSS
$custom: #421b87;
$custom-light: #7e5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#421b87",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 261.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.1642,
    "h": 292.1
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#421B87
secondary
#8FBA44
accent
#EA3EAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421B87

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

Preview Lab → · Contrast checker → · Palette generator →

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