#421B81#421B81

#421B81 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.157 H 293.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#421B81
RGBrgb(66, 27, 129)
HSLhsl(263, 65%, 31%)
HSVhsv(263, 79%, 51%)
CMYKcmyk(48.8%, 79.1%, 0%, 49.4%)
CIE-LABlab(22.04, 41.54, -50.14)
CIE-LCHlch(22.04, 65.12, 309.64°)
OKLaboklab(34.67% 0.0637 -0.1438)
OKLCHoklch(34.67% 0.157 293.9)
XYZxyz(6.6001, 3.5269, 21.0976)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B81 #5A811B
analogous
#1B2781 #421B81 #751B81
triadic
#421B81 #81421B #1B8142
tetradic
#421B81 #811B27 #5A811B #1B8175
square
#421B81 #811B27 #5A811B #1B8175
split-complementary
#421B81 #81751B #27811B
monochromatic
#0E061C #28104E #421B81 #5C26B4 #793FD7

Accessibility & contrast

On white

12.31
#421B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#421B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B81
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B81#FFFFFF#000000##FFFFFF
##421B811.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#2F374D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421b81;
/* rgb */ color: rgb(66, 27, 129);
/* oklch */ color: oklch(34.7% 0.157 293.9);
Tailwind
colors: {
  custom: {
    50: '#7d5ca7',
    500: '#421b81',
    950: '#000000',
  },
}
SCSS
$custom: #421b81;
$custom-light: #7d5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#421b81",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 262.941,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34674,
    "c": 0.1573,
    "h": 293.9
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#421B81
secondary
#89B543
accent
#E83FA8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421B81

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

Preview Lab → · Contrast checker → · Palette generator →

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