#421C79#421C79

#421C79 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.147 H 296.3°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#421C79
RGBrgb(66, 28, 121)
HSLhsl(265, 62%, 29%)
HSVhsv(265, 77%, 47%)
CMYKcmyk(45.5%, 76.9%, 0%, 52.5%)
CIE-LABlab(21.47, 38.83, -46.01)
CIE-LCHlch(21.47, 60.20, 310.17°)
OKLaboklab(34.04% 0.065 -0.1317)
OKLCHoklch(34.04% 0.147 296.3)
XYZxyz(6.1123, 3.3691, 18.4137)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421C79 #53791C
analogous
#1C2579 #421C79 #711C79
triadic
#421C79 #79421C #1C7942
tetradic
#421C79 #791C25 #53791C #1C7971
square
#421C79 #791C25 #53791C #1C7971
split-complementary
#421C79 #79711C #25791C
monochromatic
#0E0619 #271047 #421C79 #5D28AB #7A3DD2

Accessibility & contrast

On white

12.55
#421C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421C79
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421C79#FFFFFF#000000##FFFFFF
##421C791.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#333449
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421c79;
/* rgb */ color: rgb(66, 28, 121);
/* oklch */ color: oklch(34.0% 0.147 296.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ca1',
    500: '#421c79',
    950: '#000000',
  },
}
SCSS
$custom: #421c79;
$custom-light: #7c5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#421c79",
  "rgb": {
    "r": 66,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 264.516,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.14686,
    "h": 296.3
  },
  "luminance": 0.03369
}

Semantic roles & 50–950 ramp

primary
#421C79
secondary
#82AD44
accent
#E542A3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421C79

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

Preview Lab → · Contrast checker → · Palette generator →

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