#421B79#421B79

#421B79 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.148 H 296.5°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#421B79
RGBrgb(66, 27, 121)
HSLhsl(265, 64%, 29%)
HSVhsv(265, 78%, 47%)
CMYKcmyk(45.5%, 77.7%, 0%, 52.5%)
CIE-LABlab(21.29, 39.33, -46.29)
CIE-LCHlch(21.29, 60.74, 310.35°)
OKLaboklab(33.92% 0.0659 -0.1325)
OKLCHoklch(33.92% 0.148 296.5)
XYZxyz(6.0890, 3.3225, 18.4059)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B79 #52791B
analogous
#1B2379 #421B79 #711B79
triadic
#421B79 #79421B #1B7942
tetradic
#421B79 #791B23 #52791B #1B7971
square
#421B79 #791B23 #52791B #1B7971
split-complementary
#421B79 #79711B #23791B
monochromatic
#0E0619 #271047 #421B79 #5D26AB #7A3BD3

Accessibility & contrast

On white

12.62
#421B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421B79
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B79#FFFFFF#000000##FFFFFF
##421B791.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.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: #421b79;
/* rgb */ color: rgb(66, 27, 121);
/* oklch */ color: oklch(33.9% 0.148 296.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ca1',
    500: '#421b79',
    950: '#000000',
  },
}
SCSS
$custom: #421b79;
$custom-light: #7c5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#421b79",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 264.894,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33918,
    "c": 0.14801,
    "h": 296.5
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#421B79
secondary
#81AD43
accent
#E741A2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421B79

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

Preview Lab → · Contrast checker → · Palette generator →

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