#421B84#421B84

#421B84 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.161 H 293.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#421B84
RGBrgb(66, 27, 132)
HSLhsl(262, 66%, 31%)
HSVhsv(262, 80%, 52%)
CMYKcmyk(50%, 79.5%, 0%, 48.2%)
CIE-LABlab(22.33, 42.38, -51.56)
CIE-LCHlch(22.33, 66.74, 309.42°)
OKLaboklab(34.96% 0.0628 -0.148)
OKLCHoklch(34.96% 0.161 293)
XYZxyz(6.8024, 3.6078, 22.1633)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B84 #5D841B
analogous
#1B2884 #421B84 #761B84
triadic
#421B84 #84421B #1B8442
tetradic
#421B84 #841B28 #5D841B #1B8476
square
#421B84 #841B28 #5D841B #1B8476
split-complementary
#421B84 #84761B #28841B
monochromatic
#0F061E #291151 #421B84 #5B25B7 #7941D8

Accessibility & contrast

On white

12.20
#421B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#421B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B84
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B84#FFFFFF#000000##FFFFFF
##421B841.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#2D384F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421b84;
/* rgb */ color: rgb(66, 27, 132);
/* oklch */ color: oklch(35.0% 0.161 293.0);
Tailwind
colors: {
  custom: {
    50: '#7e5ca9',
    500: '#421b84',
    950: '#000000',
  },
}
SCSS
$custom: #421b84;
$custom-light: #7e5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#421b84",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 262.286,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34964,
    "c": 0.16076,
    "h": 293
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#421B84
secondary
#8CB743
accent
#E93FAA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421B84

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

Preview Lab → · Contrast checker → · Palette generator →

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