#421881#421881

#421881 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.160 H 294.4°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#421881
RGBrgb(66, 24, 129)
HSLhsl(264, 69%, 30%)
HSVhsv(264, 81%, 51%)
CMYKcmyk(48.8%, 81.4%, 0%, 49.4%)
CIE-LABlab(21.57, 42.91, -50.92)
CIE-LCHlch(21.57, 66.59, 310.12°)
OKLaboklab(34.34% 0.0661 -0.1461)
OKLCHoklch(34.34% 0.16 294.4)
XYZxyz(6.5348, 3.3963, 21.0759)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421881 #578118
analogous
#182381 #421881 #761881
triadic
#421881 #814218 #188142
tetradic
#421881 #811823 #578118 #188176
square
#421881 #811823 #578118 #188176
split-complementary
#421881 #817618 #238118
monochromatic
#0D051A #280E4D #421881 #5C22B5 #7A39DA

Accessibility & contrast

On white

12.51
#421881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#421881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421881
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421881#FFFFFF#000000##FFFFFF
##4218811.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#2F364D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421881;
/* rgb */ color: rgb(66, 24, 129);
/* oklch */ color: oklch(34.3% 0.160 294.4);
Tailwind
colors: {
  custom: {
    50: '#7e5ba7',
    500: '#421881',
    950: '#000000',
  },
}
SCSS
$custom: #421881;
$custom-light: #7e5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#421881",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 264,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.34342,
    "c": 0.16036,
    "h": 294.4
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#421881
secondary
#86B540
accent
#EB3CA5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #421881

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

Preview Lab → · Contrast checker → · Palette generator →

#421881 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva