#421F7C#421F7C

#421F7C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.147 H 294.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#421F7C
RGBrgb(66, 31, 124)
HSLhsl(263, 60%, 30%)
HSVhsv(263, 75%, 49%)
CMYKcmyk(46.8%, 75%, 0%, 51.4%)
CIE-LABlab(22.28, 38.14, -46.59)
CIE-LCHlch(22.28, 60.21, 309.31°)
OKLaboklab(34.7% 0.0613 -0.1334)
OKLCHoklch(34.7% 0.147 294.7)
XYZxyz(6.3739, 3.5933, 19.4226)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F7C #597C1F
analogous
#1F2A7C #421F7C #701F7C
triadic
#421F7C #7C421F #1F7C42
tetradic
#421F7C #7C1F2A #597C1F #1F7C70
square
#421F7C #7C1F2A #597C1F #1F7C70
split-complementary
#421F7C #7C701F #2A7C1F
monochromatic
#0E071A #28134B #421F7C #5C2BAD #7945D0

Accessibility & contrast

On white

12.22
#421F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421F7C
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F7C#FFFFFF#000000##FFFFFF
##421F7C1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#32374B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421f7c;
/* rgb */ color: rgb(66, 31, 124);
/* oklch */ color: oklch(34.7% 0.147 294.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ea3',
    500: '#421f7c',
    950: '#000000',
  },
}
SCSS
$custom: #421f7c;
$custom-light: #7c5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#421f7c",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 262.581,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.14685,
    "h": 294.7
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#421F7C
secondary
#88AF48
accent
#E345A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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