#421171#421171

#421171 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.150 H 301.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#421171
RGBrgb(66, 17, 113)
HSLhsl(271, 74%, 25%)
HSVhsv(271, 85%, 44%)
CMYKcmyk(41.6%, 85%, 0%, 55.7%)
CIE-LABlab(19.02, 41.59, -44.86)
CIE-LCHlch(19.02, 61.18, 312.83°)
OKLaboklab(32.1% 0.077 -0.1283)
OKLCHoklch(32.1% 0.15 301)
XYZxyz(5.4271, 2.7514, 15.8647)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421171 #407111
analogous
#121171 #421171 #711170
triadic
#421171 #714211 #117142
tetradic
#421171 #711211 #407111 #117071
square
#421171 #711211 #407111 #117071
split-complementary
#421171 #707111 #117112
monochromatic
#10041B #23093C #421171 #6119A6 #8021DB

Accessibility & contrast

On white

13.55
#421171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#421171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421171
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421171#FFFFFF#000000##FFFFFF
##4211711.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#372C42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #421171;
/* rgb */ color: rgb(66, 17, 113);
/* oklch */ color: oklch(32.1% 0.150 301.0);
Tailwind
colors: {
  custom: {
    50: '#7c569b',
    500: '#421171',
    950: '#000000',
  },
}
SCSS
$custom: #421171;
$custom-light: #7c569b;
$custom-dark: #000000;
JSON
{
  "hex": "#421171",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 270.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.321,
    "c": 0.14959,
    "h": 301
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#421171
secondary
#6EA836
accent
#F13792
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #421171

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

Preview Lab → · Contrast checker → · Palette generator →

#421171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva