#421B7C#421B7C

#421B7C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.152 H 295.5°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#421B7C
RGBrgb(66, 27, 124)
HSLhsl(264, 64%, 30%)
HSVhsv(264, 78%, 49%)
CMYKcmyk(46.8%, 78.2%, 0%, 51.4%)
CIE-LABlab(21.57, 40.15, -47.75)
CIE-LCHlch(21.57, 62.39, 310.06°)
OKLaboklab(34.2% 0.0651 -0.1368)
OKLCHoklch(34.2% 0.152 295.5)
XYZxyz(6.2758, 3.3972, 19.3899)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B7C #557C1B
analogous
#1B247C #421B7C #731B7C
triadic
#421B7C #7C421B #1B7C42
tetradic
#421B7C #7C1B24 #557C1B #1B7C73
square
#421B7C #7C1B24 #557C1B #1B7C73
split-complementary
#421B7C #7C731B #247C1B
monochromatic
#0D0519 #27104A #421B7C #5D26AE #7A3DD5

Accessibility & contrast

On white

12.50
#421B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#421B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B7C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B7C#FFFFFF#000000##FFFFFF
##421B7C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#32354A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421b7c;
/* rgb */ color: rgb(66, 27, 124);
/* oklch */ color: oklch(34.2% 0.152 295.5);
Tailwind
colors: {
  custom: {
    50: '#7d5ca3',
    500: '#421b7c',
    950: '#000000',
  },
}
SCSS
$custom: #421b7c;
$custom-light: #7d5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#421b7c",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 264.124,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.15151,
    "h": 295.5
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#421B7C
secondary
#84B043
accent
#E741A4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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