#421B7F#421B7F

#421B7F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.155 H 294.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#421B7F
RGBrgb(66, 27, 127)
HSLhsl(263, 65%, 30%)
HSVhsv(263, 79%, 50%)
CMYKcmyk(48%, 78.7%, 0%, 50.2%)
CIE-LABlab(21.85, 40.99, -49.19)
CIE-LCHlch(21.85, 64.03, 309.80°)
OKLaboklab(34.48% 0.0643 -0.141)
OKLCHoklch(34.48% 0.155 294.5)
XYZxyz(6.4684, 3.4742, 20.4043)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B7F #587F1B
analogous
#1B267F #421B7F #741B7F
triadic
#421B7F #7F421B #1B7F42
tetradic
#421B7F #7F1B26 #587F1B #1B7F74
square
#421B7F #7F1B26 #587F1B #1B7F74
split-complementary
#421B7F #7F741B #267F1B
monochromatic
#0E061A #28104D #421B7F #5C26B1 #7A3ED6

Accessibility & contrast

On white

12.39
#421B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421B7F
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B7F#FFFFFF#000000##FFFFFF
##421B7F1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#30364C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421b7f;
/* rgb */ color: rgb(66, 27, 127);
/* oklch */ color: oklch(34.5% 0.155 294.5);
Tailwind
colors: {
  custom: {
    50: '#7d5ca5',
    500: '#421b7f',
    950: '#000000',
  },
}
SCSS
$custom: #421b7f;
$custom-light: #7d5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#421b7f",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 263.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34482,
    "c": 0.15499,
    "h": 294.5
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#421B7F
secondary
#87B343
accent
#E840A6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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