#421B7E#421B7E

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

Color values

HEX#421B7E
RGBrgb(66, 27, 126)
HSLhsl(264, 65%, 30%)
HSVhsv(264, 79%, 49%)
CMYKcmyk(47.6%, 78.6%, 0%, 50.6%)
CIE-LABlab(21.76, 40.71, -48.71)
CIE-LCHlch(21.76, 63.48, 309.89°)
OKLaboklab(34.39% 0.0646 -0.1396)
OKLCHoklch(34.39% 0.154 294.8)
XYZxyz(6.4036, 3.4483, 20.0628)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B7E #577E1B
analogous
#1B267E #421B7E #731B7E
triadic
#421B7E #7E421B #1B7E42
tetradic
#421B7E #7E1B26 #577E1B #1B7E73
square
#421B7E #7E1B26 #577E1B #1B7E73
split-complementary
#421B7E #7E731B #267E1B
monochromatic
#0D0519 #28104C #421B7E #5C26B0 #7A3ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##421B7E#FFFFFF#000000##FFFFFF
##421B7E1.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)
#003581
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#31364B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421b7e;
/* rgb */ color: rgb(66, 27, 126);
/* oklch */ color: oklch(34.4% 0.154 294.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ca4',
    500: '#421b7e',
    950: '#000000',
  },
}
SCSS
$custom: #421b7e;
$custom-light: #7d5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#421b7e",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 263.636,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.34387,
    "c": 0.15383,
    "h": 294.8
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#421B7E
secondary
#86B243
accent
#E840A6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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