#421F78#421F78

#421F78 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.142 H 296.0°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#421F78
RGBrgb(66, 31, 120)
HSLhsl(264, 59%, 30%)
HSVhsv(264, 74%, 47%)
CMYKcmyk(45%, 74.2%, 0%, 52.9%)
CIE-LABlab(21.92, 37.01, -44.62)
CIE-LCHlch(21.92, 57.97, 309.67°)
OKLaboklab(34.34% 0.0622 -0.1277)
OKLCHoklch(34.34% 0.142 296)
XYZxyz(6.1260, 3.4942, 18.1173)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F78 #55781F
analogous
#1F2878 #421F78 #6F1F78
triadic
#421F78 #78421F #1F7842
tetradic
#421F78 #781F28 #55781F #1F786F
square
#421F78 #781F28 #55781F #1F786F
split-complementary
#421F78 #786F1F #28781F
monochromatic
#0D0618 #271247 #421F78 #5D2CA9 #7A43CE

Accessibility & contrast

On white

12.36
#421F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#421F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F78
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F78#FFFFFF#000000##FFFFFF
##421F781.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#343549
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421f78;
/* rgb */ color: rgb(66, 31, 120);
/* oklch */ color: oklch(34.3% 0.142 296.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ea0',
    500: '#421f78',
    950: '#000000',
  },
}
SCSS
$custom: #421f78;
$custom-light: #7c5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#421f78",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 263.596,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34336,
    "c": 0.14201,
    "h": 296
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#421F78
secondary
#84AB47
accent
#E246A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421F78

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

Preview Lab → · Contrast checker → · Palette generator →

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