#642DA1#642DA1

#642DA1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.177 H 300.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#642DA1
RGBrgb(100, 45, 161)
HSLhsl(268, 56%, 40%)
HSVhsv(268, 72%, 63%)
CMYKcmyk(37.9%, 72%, 0%, 36.9%)
CIE-LABlab(32.17, 47.50, -53.21)
CIE-LCHlch(32.17, 71.33, 311.76°)
OKLaboklab(43.64% 0.0908 -0.1517)
OKLCHoklch(43.64% 0.177 300.9)
XYZxyz(12.6254, 7.1592, 34.4280)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DA1 #6AA12D
analogous
#2D30A1 #642DA1 #9E2DA1
triadic
#642DA1 #A1642D #2DA164
tetradic
#642DA1 #A12D30 #6AA12D #2DA19E
square
#642DA1 #A12D30 #6AA12D #2DA19E
split-complementary
#642DA1 #A19E2D #30A12D
monochromatic
#291241 #462071 #642DA1 #8241CA #A271D7

Accessibility & contrast

On white

8.64
#642DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#642DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DA1
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DA1#FFFFFF#000000##FFFFFF
##642DA11.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#574964
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642da1;
/* rgb */ color: rgb(100, 45, 161);
/* oklch */ color: oklch(43.6% 0.177 300.9);
Tailwind
colors: {
  custom: {
    50: '#966bbe',
    500: '#642da1',
    950: '#000000',
  },
}
SCSS
$custom: #642da1;
$custom-light: #966bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#642da1",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 268.448,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43635,
    "c": 0.17679,
    "h": 300.9
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#642DA1
secondary
#97BF6B
accent
#E04898
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642DA1

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

Preview Lab → · Contrast checker → · Palette generator →

#642DA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva