#642DA3#642DA3

#642DA3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.179 H 300.3°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#642DA3
RGBrgb(100, 45, 163)
HSLhsl(268, 57%, 41%)
HSVhsv(268, 72%, 64%)
CMYKcmyk(38.7%, 72.4%, 0%, 36.1%)
CIE-LABlab(32.33, 48.01, -54.16)
CIE-LCHlch(32.33, 72.37, 311.56°)
OKLaboklab(43.8% 0.0904 -0.1545)
OKLCHoklch(43.8% 0.179 300.3)
XYZxyz(12.8031, 7.2303, 35.3643)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DA3 #6CA32D
analogous
#2D31A3 #642DA3 #9F2DA3
triadic
#642DA3 #A3642D #2DA364
tetradic
#642DA3 #A32D31 #6CA32D #2DA39F
square
#642DA3 #A32D31 #6CA32D #2DA39F
split-complementary
#642DA3 #A39F2D #31A32D
monochromatic
#291343 #472073 #642DA3 #8242CB #A272D8

Accessibility & contrast

On white

8.59
#642DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#642DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DA3
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DA3#FFFFFF#000000##FFFFFF
##642DA31.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#564A65
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642da3;
/* rgb */ color: rgb(100, 45, 163);
/* oklch */ color: oklch(43.8% 0.179 300.3);
Tailwind
colors: {
  custom: {
    50: '#966bbf',
    500: '#642da3',
    950: '#000000',
  },
}
SCSS
$custom: #642da3;
$custom-light: #966bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#642da3",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 267.966,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43798,
    "c": 0.179,
    "h": 300.3
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#642DA3
secondary
#99C06C
accent
#E04899
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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