#421D7F#421D7F

#421D7F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.153 H 294.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#421D7F
RGBrgb(66, 29, 127)
HSLhsl(263, 63%, 31%)
HSVhsv(263, 77%, 50%)
CMYKcmyk(48%, 77.2%, 0%, 50.2%)
CIE-LABlab(22.19, 40.01, -48.63)
CIE-LCHlch(22.19, 62.98, 309.45°)
OKLaboklab(34.72% 0.0625 -0.1394)
OKLCHoklch(34.72% 0.153 294.1)
XYZxyz(6.5158, 3.5691, 20.4202)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D7F #5A7F1D
analogous
#1D297F #421D7F #731D7F
triadic
#421D7F #7F421D #1D7F42
tetradic
#421D7F #7F1D29 #5A7F1D #1D7F73
square
#421D7F #7F1D29 #5A7F1D #1D7F73
split-complementary
#421D7F #7F731D #297F1D
monochromatic
#0E061B #28124D #421D7F #5C28B1 #7942D4

Accessibility & contrast

On white

12.25
#421D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#421D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D7F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D7F#FFFFFF#000000##FFFFFF
##421D7F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#30374D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421d7f;
/* rgb */ color: rgb(66, 29, 127);
/* oklch */ color: oklch(34.7% 0.153 294.1);
Tailwind
colors: {
  custom: {
    50: '#7d5da5',
    500: '#421d7f',
    950: '#000000',
  },
}
SCSS
$custom: #421d7f;
$custom-light: #7d5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#421d7f",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 262.653,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34722,
    "c": 0.15277,
    "h": 294.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#421D7F
secondary
#89B245
accent
#E642A8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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