#421687#421687

#421687 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.169 H 292.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#421687
RGBrgb(66, 22, 135)
HSLhsl(263, 72%, 31%)
HSVhsv(263, 84%, 53%)
CMYKcmyk(51.1%, 83.7%, 0%, 47.1%)
CIE-LABlab(21.88, 45.38, -54.20)
CIE-LCHlch(21.88, 70.68, 309.94°)
OKLaboklab(34.74% 0.0655 -0.1556)
OKLCHoklch(34.74% 0.169 292.8)
XYZxyz(6.9056, 3.4811, 23.2250)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421687 #5B8716
analogous
#162287 #421687 #7A1687
triadic
#421687 #874216 #168742
tetradic
#421687 #871622 #5B8716 #16877A
square
#421687 #871622 #5B8716 #16877A
split-complementary
#421687 #877A16 #228716
monochromatic
#0F051E #280D52 #421687 #5C1FBC #7939DF

Accessibility & contrast

On white

12.38
#421687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#421687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421687
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421687#FFFFFF#000000##FFFFFF
##4216871.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#2B3850
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #421687;
/* rgb */ color: rgb(66, 22, 135);
/* oklch */ color: oklch(34.7% 0.169 292.8);
Tailwind
colors: {
  custom: {
    50: '#7f5aab',
    500: '#421687',
    950: '#000000',
  },
}
SCSS
$custom: #421687;
$custom-light: #7f5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#421687",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 263.363,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34739,
    "c": 0.16888,
    "h": 292.8
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#421687
secondary
#8ABB3E
accent
#EF39A8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421687

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

Preview Lab → · Contrast checker → · Palette generator →

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