#421F76#421F76

#421F76 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.140 H 296.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#421F76
RGBrgb(66, 31, 118)
HSLhsl(264, 58%, 29%)
HSVhsv(264, 74%, 46%)
CMYKcmyk(44.1%, 73.7%, 0%, 53.7%)
CIE-LABlab(21.75, 36.44, -43.62)
CIE-LCHlch(21.75, 56.84, 309.87°)
OKLaboklab(34.16% 0.0626 -0.1247)
OKLCHoklch(34.16% 0.14 296.7)
XYZxyz(6.0059, 3.4461, 17.4848)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F76 #53761F
analogous
#1F2876 #421F76 #6E1F76
triadic
#421F76 #76421F #1F7642
tetradic
#421F76 #761F28 #53761F #1F766E
square
#421F76 #761F28 #53761F #1F766E
split-complementary
#421F76 #766E1F #28761F
monochromatic
#0E0618 #271246 #421F76 #5D2CA6 #7A42CD

Accessibility & contrast

On white

12.43
#421F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#421F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F76
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F76#FFFFFF#000000##FFFFFF
##421F761.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#343548
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421f76;
/* rgb */ color: rgb(66, 31, 118);
/* oklch */ color: oklch(34.2% 0.140 296.7);
Tailwind
colors: {
  custom: {
    50: '#7c5e9e',
    500: '#421f76',
    950: '#000000',
  },
}
SCSS
$custom: #421f76;
$custom-light: #7c5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#421f76",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 264.138,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34158,
    "c": 0.13957,
    "h": 296.7
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#421F76
secondary
#82AA47
accent
#E246A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421F76

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

Preview Lab → · Contrast checker → · Palette generator →

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