#421D8C#421D8C

#421D8C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.168 H 290.5°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#421D8C
RGBrgb(66, 29, 140)
HSLhsl(260, 66%, 33%)
HSVhsv(260, 79%, 55%)
CMYKcmyk(52.9%, 79.3%, 0%, 45.1%)
CIE-LABlab(23.44, 43.68, -54.75)
CIE-LCHlch(23.44, 70.04, 308.58°)
OKLaboklab(35.98% 0.0587 -0.1573)
OKLCHoklch(35.98% 0.168 290.5)
XYZxyz(7.4184, 3.9301, 25.1736)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D8C #678C1D
analogous
#1D2F8C #421D8C #791D8C
triadic
#421D8C #8C421D #1D8C42
tetradic
#421D8C #8C1D2F #678C1D #1D8C79
square
#421D8C #8C1D2F #678C1D #1D8C79
split-complementary
#421D8C #8C791D #2F8C1D
monochromatic
#120827 #2A1259 #421D8C #5A28BF #7A4AD9

Accessibility & contrast

On white

11.76
#421D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#421D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D8C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D8C#FFFFFF#000000##FFFFFF
##421D8C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#273C54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421d8c;
/* rgb */ color: rgb(66, 29, 140);
/* oklch */ color: oklch(36.0% 0.168 290.5);
Tailwind
colors: {
  custom: {
    50: '#7f5eaf',
    500: '#421d8c',
    950: '#000000',
  },
}
SCSS
$custom: #421d8c;
$custom-light: #7f5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#421d8c",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 260,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35976,
    "c": 0.16796,
    "h": 290.5
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#421D8C
secondary
#95BC49
accent
#E93FB0
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #421D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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