#421F79#421F79

#421F79 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.143 H 295.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#421F79
RGBrgb(66, 31, 121)
HSLhsl(263, 59%, 30%)
HSVhsv(263, 74%, 47%)
CMYKcmyk(45.5%, 74.4%, 0%, 52.5%)
CIE-LABlab(22.01, 37.29, -45.11)
CIE-LCHlch(22.01, 58.53, 309.58°)
OKLaboklab(34.43% 0.062 -0.1291)
OKLCHoklch(34.43% 0.143 295.7)
XYZxyz(6.1870, 3.5186, 18.4386)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F79 #56791F
analogous
#1F2979 #421F79 #6F1F79
triadic
#421F79 #79421F #1F7942
tetradic
#421F79 #791F29 #56791F #1F796F
square
#421F79 #791F29 #56791F #1F796F
split-complementary
#421F79 #796F1F #29791F
monochromatic
#0D0618 #271348 #421F79 #5D2BAA #7A43CF

Accessibility & contrast

On white

12.33
#421F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#421F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F79
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F79#FFFFFF#000000##FFFFFF
##421F791.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#33364A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421f79;
/* rgb */ color: rgb(66, 31, 121);
/* oklch */ color: oklch(34.4% 0.143 295.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ea0',
    500: '#421f79',
    950: '#000000',
  },
}
SCSS
$custom: #421f79;
$custom-light: #7c5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#421f79",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 263.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34426,
    "c": 0.14322,
    "h": 295.7
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#421F79
secondary
#85AC47
accent
#E245A5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421F79

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

Preview Lab → · Contrast checker → · Palette generator →

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