#421D79#421D79

#421D79 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.146 H 296.1°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#421D79
RGBrgb(66, 29, 121)
HSLhsl(264, 61%, 29%)
HSVhsv(264, 76%, 47%)
CMYKcmyk(45.5%, 76%, 0%, 52.5%)
CIE-LABlab(21.64, 38.33, -45.71)
CIE-LCHlch(21.64, 59.66, 309.98°)
OKLaboklab(34.17% 0.064 -0.1308)
OKLCHoklch(34.17% 0.146 296.1)
XYZxyz(6.1364, 3.4173, 18.4218)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D79 #54791D
analogous
#1D2679 #421D79 #701D79
triadic
#421D79 #79421D #1D7942
tetradic
#421D79 #791D26 #54791D #1D7970
square
#421D79 #791D26 #54791D #1D7970
split-complementary
#421D79 #79701D #26791D
monochromatic
#0D0619 #271148 #421D79 #5D29AA #7A3FD1

Accessibility & contrast

On white

12.47
#421D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#421D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D79
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D79#FFFFFF#000000##FFFFFF
##421D791.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#333549
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421d79;
/* rgb */ color: rgb(66, 29, 121);
/* oklch */ color: oklch(34.2% 0.146 296.1);
Tailwind
colors: {
  custom: {
    50: '#7c5da1',
    500: '#421d79',
    950: '#000000',
  },
}
SCSS
$custom: #421d79;
$custom-light: #7c5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#421d79",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 264.13,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34165,
    "c": 0.14567,
    "h": 296.1
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#421D79
secondary
#83AD45
accent
#E443A4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421D79

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

Preview Lab → · Contrast checker → · Palette generator →

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