#421F96#421F96

#421F96 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.178 H 287.8°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#421F96
RGBrgb(66, 31, 150)
HSLhsl(258, 66%, 35%)
HSVhsv(258, 79%, 59%)
CMYKcmyk(56%, 79.3%, 0%, 41.2%)
CIE-LABlab(24.76, 45.58, -58.77)
CIE-LCHlch(24.76, 74.37, 307.80°)
OKLaboklab(37.2% 0.0542 -0.1691)
OKLCHoklch(37.2% 0.178 287.8)
XYZxyz(8.2401, 4.3398, 29.2517)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F96 #73961F
analogous
#1F3796 #421F96 #7D1F96
triadic
#421F96 #96421F #1F9642
tetradic
#421F96 #961F37 #73961F #1F967D
square
#421F96 #961F37 #73961F #1F967D
split-complementary
#421F96 #967D1F #37961F
monochromatic
#150A31 #2C1563 #421F96 #5829C9 #7C54DC

Accessibility & contrast

On white

11.24
#421F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#421F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F96
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F96#FFFFFF#000000##FFFFFF
##421F961.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#1E415A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #421f96;
/* rgb */ color: rgb(66, 31, 150);
/* oklch */ color: oklch(37.2% 0.178 287.8);
Tailwind
colors: {
  custom: {
    50: '#815fb6',
    500: '#421f96',
    950: '#000000',
  },
}
SCSS
$custom: #421f96;
$custom-light: #815fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#421f96",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 257.647,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37202,
    "c": 0.17758,
    "h": 287.8
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#421F96
secondary
#9FBF52
accent
#E93FB7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421F96

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

Preview Lab → · Contrast checker → · Palette generator →

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