#421D82#421D82

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

Color values

HEX#421D82
RGBrgb(66, 29, 130)
HSLhsl(262, 64%, 31%)
HSVhsv(262, 78%, 51%)
CMYKcmyk(49.2%, 77.7%, 0%, 49%)
CIE-LABlab(22.47, 40.86, -50.07)
CIE-LCHlch(22.47, 64.62, 309.22°)
OKLaboklab(35.01% 0.0617 -0.1436)
OKLCHoklch(35.01% 0.156 293.2)
XYZxyz(6.7143, 3.6485, 21.4652)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D82 #5D821D
analogous
#1D2A82 #421D82 #741D82
triadic
#421D82 #82421D #1D8242
tetradic
#421D82 #821D2A #5D821D #1D8274
square
#421D82 #821D2A #5D821D #1D8274
split-complementary
#421D82 #82741D #2A821D
monochromatic
#0F071E #291250 #421D82 #5B28B4 #7944D5

Accessibility & contrast

On white

12.14
#421D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#421D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D82
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D82#FFFFFF#000000##FFFFFF
##421D821.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#2E384E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #421d82;
/* rgb */ color: rgb(66, 29, 130);
/* oklch */ color: oklch(35.0% 0.156 293.2);
Tailwind
colors: {
  custom: {
    50: '#7d5da7',
    500: '#421d82',
    950: '#000000',
  },
}
SCSS
$custom: #421d82;
$custom-light: #7d5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#421d82",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 261.98,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35006,
    "c": 0.1563,
    "h": 293.2
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#421D82
secondary
#8CB546
accent
#E741AA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #421D82

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

Preview Lab → · Contrast checker → · Palette generator →

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