#421A7B#421A7B

#421A7B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.151 H 296.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#421A7B
RGBrgb(66, 26, 123)
HSLhsl(265, 65%, 29%)
HSVhsv(265, 79%, 48%)
CMYKcmyk(46.3%, 78.9%, 0%, 51.8%)
CIE-LABlab(21.31, 40.36, -47.54)
CIE-LCHlch(21.31, 62.36, 310.33°)
OKLaboklab(33.99% 0.0663 -0.1362)
OKLCHoklch(33.99% 0.151 296)
XYZxyz(6.1904, 3.3270, 19.0511)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A7B #537B1A
analogous
#1A237B #421A7B #731A7B
triadic
#421A7B #7B421A #1A7B42
tetradic
#421A7B #7B1A23 #537B1A #1A7B73
square
#421A7B #7B1A23 #537B1A #1A7B73
split-complementary
#421A7B #7B731A #237B1A
monochromatic
#0E0519 #270F48 #421A7B #5D25AE #7A3AD5

Accessibility & contrast

On white

12.61
#421A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#421A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421A7B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A7B#FFFFFF#000000##FFFFFF
##421A7B1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#32344A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421a7b;
/* rgb */ color: rgb(66, 26, 123);
/* oklch */ color: oklch(34.0% 0.151 296.0);
Tailwind
colors: {
  custom: {
    50: '#7d5ba2',
    500: '#421a7b',
    950: '#000000',
  },
}
SCSS
$custom: #421a7b;
$custom-light: #7d5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#421a7b",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 264.742,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33986,
    "c": 0.15146,
    "h": 296
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#421A7B
secondary
#82AF42
accent
#E840A3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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