#421B7A#421B7A

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

Color values

HEX#421B7A
RGBrgb(66, 27, 122)
HSLhsl(265, 64%, 29%)
HSVhsv(265, 78%, 48%)
CMYKcmyk(45.9%, 77.9%, 0%, 52.2%)
CIE-LABlab(21.38, 39.60, -46.78)
CIE-LCHlch(21.38, 61.29, 310.25°)
OKLaboklab(34.01% 0.0657 -0.134)
OKLCHoklch(34.01% 0.149 296.1)
XYZxyz(6.1506, 3.3471, 18.7306)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B7A #537A1B
analogous
#1B237A #421B7A #721B7A
triadic
#421B7A #7A421B #1B7A42
tetradic
#421B7A #7A1B23 #537A1B #1B7A72
square
#421B7A #7A1B23 #537A1B #1B7A72
split-complementary
#421B7A #7A721B #237A1B
monochromatic
#0E0619 #271048 #421B7A #5D26AC #7A3CD4

Accessibility & contrast

On white

12.58
#421B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#421B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B7A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B7A#FFFFFF#000000##FFFFFF
##421B7A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421b7a;
/* rgb */ color: rgb(66, 27, 122);
/* oklch */ color: oklch(34.0% 0.149 296.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ca1',
    500: '#421b7a',
    950: '#000000',
  },
}
SCSS
$custom: #421b7a;
$custom-light: #7c5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#421b7a",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 264.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34011,
    "c": 0.14919,
    "h": 296.1
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#421B7A
secondary
#82AE43
accent
#E741A3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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