#421F82#421F82

#421F82 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.154 H 292.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#421F82
RGBrgb(66, 31, 130)
HSLhsl(261, 61%, 32%)
HSVhsv(261, 76%, 51%)
CMYKcmyk(49.2%, 76.2%, 0%, 49%)
CIE-LABlab(22.83, 39.86, -49.49)
CIE-LCHlch(22.83, 63.54, 308.85°)
OKLaboklab(35.25% 0.0599 -0.1419)
OKLCHoklch(35.25% 0.154 292.9)
XYZxyz(6.7649, 3.7497, 21.4821)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F82 #5F821F
analogous
#1F2E82 #421F82 #741F82
triadic
#421F82 #82421F #1F8242
tetradic
#421F82 #821F2E #5F821F #1F8274
square
#421F82 #821F2E #5F821F #1F8274
split-complementary
#421F82 #82741F #2E821F
monochromatic
#10071F #291351 #421F82 #5B2BB3 #7948D3

Accessibility & contrast

On white

12.00
#421F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#421F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F82
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F82#FFFFFF#000000##FFFFFF
##421F821.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#2E394F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #421f82;
/* rgb */ color: rgb(66, 31, 130);
/* oklch */ color: oklch(35.3% 0.154 292.9);
Tailwind
colors: {
  custom: {
    50: '#7d5ea7',
    500: '#421f82',
    950: '#000000',
  },
}
SCSS
$custom: #421f82;
$custom-light: #7d5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#421f82",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 261.212,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35254,
    "c": 0.15406,
    "h": 292.9
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#421F82
secondary
#8EB548
accent
#E543AC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #421F82

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

Preview Lab → · Contrast checker → · Palette generator →

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