#421C82#421C82

#421C82 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.157 H 293.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#421C82
RGBrgb(66, 28, 130)
HSLhsl(262, 65%, 31%)
HSVhsv(262, 78%, 51%)
CMYKcmyk(49.2%, 78.5%, 0%, 49%)
CIE-LABlab(22.30, 41.35, -50.35)
CIE-LCHlch(22.30, 65.15, 309.39°)
OKLaboklab(34.89% 0.0625 -0.1444)
OKLCHoklch(34.89% 0.157 293.4)
XYZxyz(6.6902, 3.6002, 21.4572)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421C82 #5C821C
analogous
#1C2982 #421C82 #751C82
triadic
#421C82 #82421C #1C8242
tetradic
#421C82 #821C29 #5C821C #1C8275
square
#421C82 #821C29 #5C821C #1C8275
split-complementary
#421C82 #82751C #29821C
monochromatic
#0F061D #281150 #421C82 #5C27B4 #7942D6

Accessibility & contrast

On white

12.21
#421C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421C82
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421C82#FFFFFF#000000##FFFFFF
##421C821.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.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: #421c82;
/* rgb */ color: rgb(66, 28, 130);
/* oklch */ color: oklch(34.9% 0.157 293.4);
Tailwind
colors: {
  custom: {
    50: '#7e5da7',
    500: '#421c82',
    950: '#000000',
  },
}
SCSS
$custom: #421c82;
$custom-light: #7e5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#421c82",
  "rgb": {
    "r": 66,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 262.353,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34886,
    "c": 0.15739,
    "h": 293.4
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#421C82
secondary
#8BB544
accent
#E840A9
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421C82

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

Preview Lab → · Contrast checker → · Palette generator →

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