#421F7D#421F7D

#421F7D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.148 H 294.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#421F7D
RGBrgb(66, 31, 125)
HSLhsl(262, 60%, 31%)
HSVhsv(262, 75%, 49%)
CMYKcmyk(47.2%, 75.2%, 0%, 51%)
CIE-LABlab(22.37, 38.43, -47.08)
CIE-LCHlch(22.37, 60.77, 309.23°)
OKLaboklab(34.79% 0.0611 -0.1349)
OKLCHoklch(34.79% 0.148 294.4)
XYZxyz(6.4374, 3.6187, 19.7574)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F7D #5A7D1F
analogous
#1F2B7D #421F7D #711F7D
triadic
#421F7D #7D421F #1F7D42
tetradic
#421F7D #7D1F2B #5A7D1F #1F7D71
square
#421F7D #7D1F2B #5A7D1F #1F7D71
split-complementary
#421F7D #7D711F #2B7D1F
monochromatic
#0E071B #28134C #421F7D #5C2BAE #7945D1

Accessibility & contrast

On white

12.18
#421F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#421F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F7D
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F7D#FFFFFF#000000##FFFFFF
##421F7D1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#31374C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421f7d;
/* rgb */ color: rgb(66, 31, 125);
/* oklch */ color: oklch(34.8% 0.148 294.4);
Tailwind
colors: {
  custom: {
    50: '#7d5ea3',
    500: '#421f7d',
    950: '#000000',
  },
}
SCSS
$custom: #421f7d;
$custom-light: #7d5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#421f7d",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 262.34,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.14806,
    "h": 294.4
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#421F7D
secondary
#89B048
accent
#E344A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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