#421D7E#421D7E

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

Color values

HEX#421D7E
RGBrgb(66, 29, 126)
HSLhsl(263, 63%, 30%)
HSVhsv(263, 77%, 49%)
CMYKcmyk(47.6%, 77%, 0%, 50.6%)
CIE-LABlab(22.10, 39.73, -48.15)
CIE-LCHlch(22.10, 62.42, 309.53°)
OKLaboklab(34.63% 0.0628 -0.138)
OKLCHoklch(34.63% 0.152 294.5)
XYZxyz(6.4510, 3.5432, 20.0786)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D7E #597E1D
analogous
#1D287E #421D7E #731D7E
triadic
#421D7E #7E421D #1D7E42
tetradic
#421D7E #7E1D28 #597E1D #1D7E73
square
#421D7E #7E1D28 #597E1D #1D7E73
split-complementary
#421D7E #7E731D #287E1D
monochromatic
#0E061B #28124C #421D7E #5C28B0 #7942D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##421D7E#FFFFFF#000000##FFFFFF
##421D7E1.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)
#003681
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#31374C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421d7e;
/* rgb */ color: rgb(66, 29, 126);
/* oklch */ color: oklch(34.6% 0.152 294.5);
Tailwind
colors: {
  custom: {
    50: '#7d5da4',
    500: '#421d7e',
    950: '#000000',
  },
}
SCSS
$custom: #421d7e;
$custom-light: #7d5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#421d7e",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 262.887,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.1516,
    "h": 294.5
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#421D7E
secondary
#88B145
accent
#E642A7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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