#421E7E#421E7E

#421E7E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.150 H 294.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#421E7E
RGBrgb(66, 30, 126)
HSLhsl(263, 62%, 31%)
HSVhsv(263, 76%, 49%)
CMYKcmyk(47.6%, 76.2%, 0%, 50.6%)
CIE-LABlab(22.28, 39.23, -47.86)
CIE-LCHlch(22.28, 61.88, 309.34°)
OKLaboklab(34.75% 0.0618 -0.1371)
OKLCHoklch(34.75% 0.15 294.3)
XYZxyz(6.4759, 3.5930, 20.0869)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421E7E #5A7E1E
analogous
#1E2A7E #421E7E #721E7E
triadic
#421E7E #7E421E #1E7E42
tetradic
#421E7E #7E1E2A #5A7E1E #1E7E72
square
#421E7E #7E1E2A #5A7E1E #1E7E72
split-complementary
#421E7E #7E721E #2A7E1E
monochromatic
#0E061B #28124D #421E7E #5C2AAF #7944D2

Accessibility & contrast

On white

12.22
#421E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#421E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421E7E
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421E7E#FFFFFF#000000##FFFFFF
##421E7E1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#30374C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421e7e;
/* rgb */ color: rgb(66, 30, 126);
/* oklch */ color: oklch(34.8% 0.150 294.3);
Tailwind
colors: {
  custom: {
    50: '#7d5ea4',
    500: '#421e7e',
    950: '#000000',
  },
}
SCSS
$custom: #421e7e;
$custom-light: #7d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#421e7e",
  "rgb": {
    "r": 66,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 262.5,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34753,
    "c": 0.15044,
    "h": 294.3
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#421E7E
secondary
#89B147
accent
#E543A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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