#421F7F#421F7F

#421F7F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.150 H 293.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#421F7F
RGBrgb(66, 31, 127)
HSLhsl(262, 61%, 31%)
HSVhsv(262, 76%, 50%)
CMYKcmyk(48%, 75.6%, 0%, 50.2%)
CIE-LABlab(22.55, 39.00, -48.05)
CIE-LCHlch(22.55, 61.88, 309.07°)
OKLaboklab(34.97% 0.0606 -0.1377)
OKLCHoklch(34.97% 0.15 293.8)
XYZxyz(6.5665, 3.6703, 20.4370)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F7F #5C7F1F
analogous
#1F2C7F #421F7F #721F7F
triadic
#421F7F #7F421F #1F7F42
tetradic
#421F7F #7F1F2C #5C7F1F #1F7F72
square
#421F7F #7F1F2C #5C7F1F #1F7F72
split-complementary
#421F7F #7F721F #2C7F1F
monochromatic
#0F071D #28134E #421F7F #5C2BB0 #7946D2

Accessibility & contrast

On white

12.11
#421F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#421F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F7F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F7F#FFFFFF#000000##FFFFFF
##421F7F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#30384D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #421f7f;
/* rgb */ color: rgb(66, 31, 127);
/* oklch */ color: oklch(35.0% 0.150 293.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ea5',
    500: '#421f7f',
    950: '#000000',
  },
}
SCSS
$custom: #421f7f;
$custom-light: #7d5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#421f7f",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 261.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34974,
    "c": 0.15046,
    "h": 293.8
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#421F7F
secondary
#8BB248
accent
#E444AA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #421F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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