#421F71#421F71

#421F71 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.133 H 298.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#421F71
RGBrgb(66, 31, 113)
HSLhsl(266, 57%, 28%)
HSVhsv(266, 73%, 44%)
CMYKcmyk(41.6%, 72.6%, 0%, 55.7%)
CIE-LABlab(21.32, 35.03, -41.11)
CIE-LCHlch(21.32, 54.01, 310.44°)
OKLaboklab(33.72% 0.0636 -0.1173)
OKLCHoklch(33.72% 0.133 298.5)
XYZxyz(5.7166, 3.3304, 15.9612)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F71 #4E711F
analogous
#1F2571 #421F71 #6B1F71
triadic
#421F71 #71421F #1F7142
tetradic
#421F71 #711F25 #4E711F #1F716B
square
#421F71 #711F25 #4E711F #1F716B
split-complementary
#421F71 #716B1F #25711F
monochromatic
#0E0718 #261241 #421F71 #5E2CA1 #7B40CB

Accessibility & contrast

On white

12.61
#421F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#421F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F71
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F71#FFFFFF#000000##FFFFFF
##421F711.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#373345
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421f71;
/* rgb */ color: rgb(66, 31, 113);
/* oklch */ color: oklch(33.7% 0.133 298.5);
Tailwind
colors: {
  custom: {
    50: '#7b5e9a',
    500: '#421f71',
    950: '#000000',
  },
}
SCSS
$custom: #421f71;
$custom-light: #7b5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#421f71",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 265.61,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3372,
    "c": 0.13346,
    "h": 298.5
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#421F71
secondary
#7DA547
accent
#E0489F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421F71

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

Preview Lab → · Contrast checker → · Palette generator →

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