#421F7A#421F7A

#421F7A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.144 H 295.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#421F7A
RGBrgb(66, 31, 122)
HSLhsl(263, 59%, 30%)
HSVhsv(263, 75%, 48%)
CMYKcmyk(45.9%, 74.6%, 0%, 52.2%)
CIE-LABlab(22.10, 37.58, -45.61)
CIE-LCHlch(22.10, 59.09, 309.49°)
OKLaboklab(34.52% 0.0618 -0.1305)
OKLCHoklch(34.52% 0.144 295.3)
XYZxyz(6.2487, 3.5432, 18.7633)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F7A #577A1F
analogous
#1F297A #421F7A #701F7A
triadic
#421F7A #7A421F #1F7A42
tetradic
#421F7A #7A1F29 #577A1F #1F7A70
square
#421F7A #7A1F29 #577A1F #1F7A70
split-complementary
#421F7A #7A701F #297A1F
monochromatic
#0D0618 #281349 #421F7A #5C2BAB #7A44CF

Accessibility & contrast

On white

12.29
#421F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#421F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F7A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F7A#FFFFFF#000000##FFFFFF
##421F7A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#33364A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421f7a;
/* rgb */ color: rgb(66, 31, 122);
/* oklch */ color: oklch(34.5% 0.144 295.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ea1',
    500: '#421f7a',
    950: '#000000',
  },
}
SCSS
$custom: #421f7a;
$custom-light: #7c5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#421f7a",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 263.077,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.34516,
    "c": 0.14443,
    "h": 295.3
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#421F7A
secondary
#86AD47
accent
#E345A6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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