#421A79#421A79

#421A79 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.149 H 296.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#421A79
RGBrgb(66, 26, 121)
HSLhsl(265, 65%, 29%)
HSVhsv(265, 79%, 47%)
CMYKcmyk(45.5%, 78.5%, 0%, 52.5%)
CIE-LABlab(21.12, 39.81, -46.57)
CIE-LCHlch(21.12, 61.26, 310.53°)
OKLaboklab(33.8% 0.0669 -0.1333)
OKLCHoklch(33.8% 0.149 296.6)
XYZxyz(6.0664, 3.2774, 18.3984)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A79 #51791A
analogous
#1A2279 #421A79 #721A79
triadic
#421A79 #79421A #1A7942
tetradic
#421A79 #791A22 #51791A #1A7972
square
#421A79 #791A22 #51791A #1A7972
split-complementary
#421A79 #79721A #22791A
monochromatic
#0E0519 #270F47 #421A79 #5D25AB #7A39D4

Accessibility & contrast

On white

12.68
#421A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#421A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421A79
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A79#FFFFFF#000000##FFFFFF
##421A791.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#333348
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421a79;
/* rgb */ color: rgb(66, 26, 121);
/* oklch */ color: oklch(33.8% 0.149 296.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ba1',
    500: '#421a79',
    950: '#000000',
  },
}
SCSS
$custom: #421a79;
$custom-light: #7c5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#421a79",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 265.263,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33798,
    "c": 0.14915,
    "h": 296.6
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#421A79
secondary
#80AD41
accent
#E840A1
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421A79

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

Preview Lab → · Contrast checker → · Palette generator →

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