#421E7C#421E7C

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

Color values

HEX#421E7C
RGBrgb(66, 30, 124)
HSLhsl(263, 61%, 30%)
HSVhsv(263, 76%, 49%)
CMYKcmyk(46.8%, 75.8%, 0%, 51.4%)
CIE-LABlab(22.10, 38.66, -46.89)
CIE-LCHlch(22.10, 60.77, 309.51°)
OKLaboklab(34.57% 0.0623 -0.1343)
OKLCHoklch(34.57% 0.148 294.9)
XYZxyz(6.3481, 3.5419, 19.4141)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421E7C #587C1E
analogous
#1E297C #421E7C #711E7C
triadic
#421E7C #7C421E #1E7C42
tetradic
#421E7C #7C1E29 #587C1E #1E7C71
square
#421E7C #7C1E29 #587C1E #1E7C71
split-complementary
#421E7C #7C711E #297C1E
monochromatic
#0E0619 #28124B #421E7C #5C2AAD #7A43D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##421E7C#FFFFFF#000000##FFFFFF
##421E7C1.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)
#00367F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#32374B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421e7c;
/* rgb */ color: rgb(66, 30, 124);
/* oklch */ color: oklch(34.6% 0.148 294.9);
Tailwind
colors: {
  custom: {
    50: '#7d5ea3',
    500: '#421e7c',
    950: '#000000',
  },
}
SCSS
$custom: #421e7c;
$custom-light: #7d5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#421e7c",
  "rgb": {
    "r": 66,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 262.979,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34568,
    "c": 0.14805,
    "h": 294.9
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#421E7C
secondary
#87AF46
accent
#E444A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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