#642DA2#642DA2

#642DA2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.178 H 300.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#642DA2
RGBrgb(100, 45, 162)
HSLhsl(268, 57%, 41%)
HSVhsv(268, 72%, 64%)
CMYKcmyk(38.3%, 72.2%, 0%, 36.5%)
CIE-LABlab(32.25, 47.76, -53.68)
CIE-LCHlch(32.25, 71.85, 311.66°)
OKLaboklab(43.72% 0.0906 -0.1531)
OKLCHoklch(43.72% 0.178 300.6)
XYZxyz(12.7139, 7.1946, 34.8943)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DA2 #6BA22D
analogous
#2D30A2 #642DA2 #9E2DA2
triadic
#642DA2 #A2642D #2DA264
tetradic
#642DA2 #A22D30 #6BA22D #2DA29E
square
#642DA2 #A22D30 #6BA22D #2DA29E
split-complementary
#642DA2 #A29E2D #30A22D
monochromatic
#291242 #462072 #642DA2 #8242CA #A272D8

Accessibility & contrast

On white

8.61
#642DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#642DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DA2
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DA2#FFFFFF#000000##FFFFFF
##642DA21.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#564A64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642da2;
/* rgb */ color: rgb(100, 45, 162);
/* oklch */ color: oklch(43.7% 0.178 300.6);
Tailwind
colors: {
  custom: {
    50: '#966bbe',
    500: '#642da2',
    950: '#000000',
  },
}
SCSS
$custom: #642da2;
$custom-light: #966bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#642da2",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 268.205,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43716,
    "c": 0.17791,
    "h": 300.6
  },
  "luminance": 0.07195
}

Semantic roles & 50–950 ramp

primary
#642DA2
secondary
#98BF6C
accent
#E04898
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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