#421D8E#421D8E

#421D8E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.170 H 290.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#421D8E
RGBrgb(66, 29, 142)
HSLhsl(260, 66%, 34%)
HSVhsv(260, 80%, 56%)
CMYKcmyk(53.5%, 79.6%, 0%, 44.3%)
CIE-LABlab(23.64, 44.25, -55.67)
CIE-LCHlch(23.64, 71.11, 308.48°)
OKLaboklab(36.17% 0.0581 -0.16)
OKLCHoklch(36.17% 0.17 290)
XYZxyz(7.5672, 3.9896, 25.9573)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421D8E #698E1D
analogous
#1D308E #421D8E #7A1D8E
triadic
#421D8E #8E421D #1D8E42
tetradic
#421D8E #8E1D30 #698E1D #1D8E7A
square
#421D8E #8E1D30 #698E1D #1D8E7A
split-complementary
#421D8E #8E7A1D #308E1D
monochromatic
#130828 #2A135B #421D8E #5A27C1 #7A4BDA

Accessibility & contrast

On white

11.68
#421D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#421D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421D8E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421D8E#FFFFFF#000000##FFFFFF
##421D8E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#263D55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421d8e;
/* rgb */ color: rgb(66, 29, 142);
/* oklch */ color: oklch(36.2% 0.170 290.0);
Tailwind
colors: {
  custom: {
    50: '#7f5eb0',
    500: '#421d8e',
    950: '#000000',
  },
}
SCSS
$custom: #421d8e;
$custom-light: #7f5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#421d8e",
  "rgb": {
    "r": 66,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 259.646,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.17027,
    "h": 290
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#421D8E
secondary
#97BD4A
accent
#E93FB1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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