#421781#421781

#421781 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.161 H 294.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#421781
RGBrgb(66, 23, 129)
HSLhsl(264, 70%, 30%)
HSVhsv(264, 82%, 51%)
CMYKcmyk(48.8%, 82.2%, 0%, 49.4%)
CIE-LABlab(21.42, 43.35, -51.17)
CIE-LCHlch(21.42, 67.06, 310.27°)
OKLaboklab(34.24% 0.0669 -0.1468)
OKLCHoklch(34.24% 0.161 294.5)
XYZxyz(6.5145, 3.3558, 21.0691)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421781 #568117
analogous
#172181 #421781 #771781
triadic
#421781 #814217 #178142
tetradic
#421781 #811721 #568117 #178177
square
#421781 #811721 #568117 #178177
split-complementary
#421781 #817717 #218117
monochromatic
#0D051A #270E4D #421781 #5D20B5 #7A37DB

Accessibility & contrast

On white

12.57
#421781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#421781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421781
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421781#FFFFFF#000000##FFFFFF
##4217811.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#2F354C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421781;
/* rgb */ color: rgb(66, 23, 129);
/* oklch */ color: oklch(34.2% 0.161 294.5);
Tailwind
colors: {
  custom: {
    50: '#7e5aa7',
    500: '#421781',
    950: '#000000',
  },
}
SCSS
$custom: #421781;
$custom-light: #7e5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#421781",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 264.34,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34238,
    "c": 0.16133,
    "h": 294.5
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#421781
secondary
#85B53E
accent
#ED3BA5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #421781

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

Preview Lab → · Contrast checker → · Palette generator →

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