#421271#421271

#421271 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.149 H 300.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#421271
RGBrgb(66, 18, 113)
HSLhsl(270, 73%, 26%)
HSVhsv(270, 84%, 44%)
CMYKcmyk(41.6%, 84.1%, 0%, 55.7%)
CIE-LABlab(19.15, 41.20, -44.64)
CIE-LCHlch(19.15, 60.75, 312.70°)
OKLaboklab(32.19% 0.0762 -0.1276)
OKLCHoklch(32.19% 0.149 300.8)
XYZxyz(5.4430, 2.7831, 15.8700)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421271 #417112
analogous
#131271 #421271 #711270
triadic
#421271 #714212 #127142
tetradic
#421271 #711312 #417112 #127071
square
#421271 #711312 #417112 #127071
split-complementary
#421271 #707112 #127113
monochromatic
#0F041A #230A3C #421271 #611AA6 #8023DB

Accessibility & contrast

On white

13.49
#421271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#421271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421271
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421271#FFFFFF#000000##FFFFFF
##4212711.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421271;
/* rgb */ color: rgb(66, 18, 113);
/* oklch */ color: oklch(32.2% 0.149 300.8);
Tailwind
colors: {
  custom: {
    50: '#7c579b',
    500: '#421271',
    950: '#000000',
  },
}
SCSS
$custom: #421271;
$custom-light: #7c579b;
$custom-dark: #000000;
JSON
{
  "hex": "#421271",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 270.316,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32193,
    "c": 0.14864,
    "h": 300.8
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#421271
secondary
#6FA837
accent
#EF3993
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #421271

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

Preview Lab → · Contrast checker → · Palette generator →

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