#421A7A#421A7A

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

Color values

HEX#421A7A
RGBrgb(66, 26, 122)
HSLhsl(265, 65%, 29%)
HSVhsv(265, 79%, 48%)
CMYKcmyk(45.9%, 78.7%, 0%, 52.2%)
CIE-LABlab(21.21, 40.08, -47.05)
CIE-LCHlch(21.21, 61.81, 310.43°)
OKLaboklab(33.89% 0.0666 -0.1348)
OKLCHoklch(33.89% 0.15 296.3)
XYZxyz(6.1281, 3.3020, 18.7231)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421A7A #527A1A
analogous
#1A227A #421A7A #721A7A
triadic
#421A7A #7A421A #1A7A42
tetradic
#421A7A #7A1A22 #527A1A #1A7A72
square
#421A7A #7A1A22 #527A1A #1A7A72
split-complementary
#421A7A #7A721A #227A1A
monochromatic
#0E0519 #270F48 #421A7A #5D25AC #7A39D5

Accessibility & contrast

On white

12.65
#421A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421A7A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421A7A#FFFFFF#000000##FFFFFF
##421A7A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#333449
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421a7a;
/* rgb */ color: rgb(66, 26, 122);
/* oklch */ color: oklch(33.9% 0.150 296.3);
Tailwind
colors: {
  custom: {
    50: '#7d5ba1',
    500: '#421a7a',
    950: '#000000',
  },
}
SCSS
$custom: #421a7a;
$custom-light: #7d5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#421a7a",
  "rgb": {
    "r": 66,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 265,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33892,
    "c": 0.15031,
    "h": 296.3
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#421A7A
secondary
#81AE41
accent
#E840A2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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