#642DA5#642DA5

#642DA5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.181 H 299.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#642DA5
RGBrgb(100, 45, 165)
HSLhsl(268, 57%, 41%)
HSVhsv(268, 73%, 65%)
CMYKcmyk(39.4%, 72.7%, 0%, 35.3%)
CIE-LABlab(32.49, 48.52, -55.10)
CIE-LCHlch(32.49, 73.42, 311.36°)
OKLaboklab(43.96% 0.09 -0.1573)
OKLCHoklch(43.96% 0.181 299.8)
XYZxyz(12.9838, 7.3026, 36.3155)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DA5 #6EA52D
analogous
#2D32A5 #642DA5 #A02DA5
triadic
#642DA5 #A5642D #2DA564
tetradic
#642DA5 #A52D32 #6EA52D #2DA5A0
square
#642DA5 #A52D32 #6EA52D #2DA5A0
split-complementary
#642DA5 #A5A02D #32A52D
monochromatic
#2A1345 #472075 #642DA5 #8243CC #A273D9

Accessibility & contrast

On white

8.53
#642DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#642DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DA5
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DA5#FFFFFF#000000##FFFFFF
##642DA51.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#554B66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642da5;
/* rgb */ color: rgb(100, 45, 165);
/* oklch */ color: oklch(44.0% 0.181 299.8);
Tailwind
colors: {
  custom: {
    50: '#966bc1',
    500: '#642da5',
    950: '#000000',
  },
}
SCSS
$custom: #642da5;
$custom-light: #966bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#642da5",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 267.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43961,
    "c": 0.18121,
    "h": 299.8
  },
  "luminance": 0.07303
}

Semantic roles & 50–950 ramp

primary
#642DA5
secondary
#9AC16D
accent
#E0479A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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