#421168#421168

#421168 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.140 H 304.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#421168
RGBrgb(66, 17, 104)
HSLhsl(274, 72%, 24%)
HSVhsv(274, 84%, 41%)
CMYKcmyk(36.5%, 83.7%, 0%, 59.2%)
CIE-LABlab(18.18, 39.33, -40.37)
CIE-LCHlch(18.18, 56.36, 314.25°)
OKLaboklab(31.26% 0.0799 -0.1151)
OKLCHoklch(31.26% 0.14 304.8)
XYZxyz(4.9453, 2.5586, 13.3274)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421168 #376811
analogous
#161168 #421168 #681162
triadic
#421168 #684211 #116842
tetradic
#421168 #681611 #376811 #116268
square
#421168 #681611 #376811 #116268
split-complementary
#421168 #626811 #116816
monochromatic
#11041A #210833 #421168 #631A9D #8522D1

Accessibility & contrast

On white

13.89
#421168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#421168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421168
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421168#FFFFFF#000000##FFFFFF
##4211681.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#3B283D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #421168;
/* rgb */ color: rgb(66, 17, 104);
/* oklch */ color: oklch(31.3% 0.140 304.8);
Tailwind
colors: {
  custom: {
    50: '#7b5694',
    500: '#421168',
    950: '#000000',
  },
}
SCSS
$custom: #421168;
$custom-light: #7b5694;
$custom-dark: #000000;
JSON
{
  "hex": "#421168",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 273.793,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31259,
    "c": 0.14005,
    "h": 304.8
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#421168
secondary
#64A035
accent
#EF3988
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #421168

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

Preview Lab → · Contrast checker → · Palette generator →

#421168 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva