#421D8F#421D8F

#421D8F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.171 H 289.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#421D8F
RGBrgb(66, 29, 143)
HSLhsl(259, 66%, 34%)
HSVhsv(259, 80%, 56%)
CMYKcmyk(53.8%, 79.7%, 0%, 43.9%)
CIE-LABlab(23.74, 44.53, -56.13)
CIE-LCHlch(23.74, 71.65, 308.43°)
OKLaboklab(36.27% 0.0578 -0.1614)
OKLCHoklch(36.27% 0.171 289.7)
XYZxyz(7.6426, 4.0198, 26.3545)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D8F #6A8F1D
analogous
#1D318F #421D8F #7B1D8F
triadic
#421D8F #8F421D #1D8F42
tetradic
#421D8F #8F1D31 #6A8F1D #1D8F7B
square
#421D8F #8F1D31 #6A8F1D #1D8F7B
split-complementary
#421D8F #8F7B1D #318F1D
monochromatic
#130829 #2B135C #421D8F #5927C2 #7A4CDB

Accessibility & contrast

On white

11.64
#421D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#421D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D8F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D8F#FFFFFF#000000##FFFFFF
##421D8F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#253E56
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421d8f;
/* rgb */ color: rgb(66, 29, 143);
/* oklch */ color: oklch(36.3% 0.171 289.7);
Tailwind
colors: {
  custom: {
    50: '#7f5eb1',
    500: '#421d8f',
    950: '#000000',
  },
}
SCSS
$custom: #421d8f;
$custom-light: #7f5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#421d8f",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 259.474,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36274,
    "c": 0.17142,
    "h": 289.7
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#421D8F
secondary
#98BD4B
accent
#E93FB2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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