#421C7B#421C7B

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

Color values

HEX#421C7B
RGBrgb(66, 28, 123)
HSLhsl(264, 63%, 30%)
HSVhsv(264, 77%, 48%)
CMYKcmyk(46.3%, 77.2%, 0%, 51.8%)
CIE-LABlab(21.65, 39.39, -46.98)
CIE-LCHlch(21.65, 61.31, 309.98°)
OKLaboklab(34.23% 0.0645 -0.1346)
OKLCHoklch(34.23% 0.149 295.6)
XYZxyz(6.2362, 3.4187, 19.0663)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421C7B #557B1C
analogous
#1C267B #421C7B #721C7B
triadic
#421C7B #7B421C #1C7B42
tetradic
#421C7B #7B1C26 #557B1C #1C7B72
square
#421C7B #7B1C26 #557B1C #1C7B72
split-complementary
#421C7B #7B721C #267B1C
monochromatic
#0D0619 #271149 #421C7B #5D27AD #7A3ED3

Accessibility & contrast

On white

12.47
#421C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#421C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421C7B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421C7B#FFFFFF#000000##FFFFFF
##421C7B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#32354A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421c7b;
/* rgb */ color: rgb(66, 28, 123);
/* oklch */ color: oklch(34.2% 0.149 295.6);
Tailwind
colors: {
  custom: {
    50: '#7d5ca2',
    500: '#421c7b',
    950: '#000000',
  },
}
SCSS
$custom: #421c7b;
$custom-light: #7d5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#421c7b",
  "rgb": {
    "r": 66,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 264,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.1492,
    "h": 295.6
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#421C7B
secondary
#84AF44
accent
#E642A4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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