#421B82#421B82

#421B82 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.158 H 293.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#421B82
RGBrgb(66, 27, 130)
HSLhsl(263, 66%, 31%)
HSVhsv(263, 79%, 51%)
CMYKcmyk(49.2%, 79.2%, 0%, 49%)
CIE-LABlab(22.14, 41.82, -50.62)
CIE-LCHlch(22.14, 65.66, 309.56°)
OKLaboklab(34.77% 0.0634 -0.1452)
OKLCHoklch(34.77% 0.158 293.6)
XYZxyz(6.6669, 3.5536, 21.4494)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B82 #5B821B
analogous
#1B2882 #421B82 #751B82
triadic
#421B82 #82421B #1B8242
tetradic
#421B82 #821B28 #5B821B #1B8275
square
#421B82 #821B28 #5B821B #1B8275
split-complementary
#421B82 #82751B #28821B
monochromatic
#0F061D #28104F #421B82 #5C26B5 #7940D7

Accessibility & contrast

On white

12.27
#421B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421B82
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B82#FFFFFF#000000##FFFFFF
##421B821.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#2E384E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421b82;
/* rgb */ color: rgb(66, 27, 130);
/* oklch */ color: oklch(34.8% 0.158 293.6);
Tailwind
colors: {
  custom: {
    50: '#7e5ca7',
    500: '#421b82',
    950: '#000000',
  },
}
SCSS
$custom: #421b82;
$custom-light: #7e5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#421b82",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 262.718,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3477,
    "c": 0.15845,
    "h": 293.6
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#421B82
secondary
#8AB643
accent
#E93FA8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421B82

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

Preview Lab → · Contrast checker → · Palette generator →

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