#642AA2#642AA2

#642AA2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.181 H 301.0°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#642AA2
RGBrgb(100, 42, 162)
HSLhsl(269, 59%, 40%)
HSVhsv(269, 74%, 64%)
CMYKcmyk(38.3%, 74.1%, 0%, 36.5%)
CIE-LABlab(31.75, 49.16, -54.49)
CIE-LCHlch(31.75, 73.39, 312.06°)
OKLaboklab(43.36% 0.0935 -0.1555)
OKLCHoklch(43.36% 0.181 301)
XYZxyz(12.6035, 6.9738, 34.8575)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA2 #68A22A
analogous
#2A2CA2 #642AA2 #A02AA2
triadic
#642AA2 #A2642A #2AA264
tetradic
#642AA2 #A22A2C #68A22A #2AA2A0
square
#642AA2 #A22A2C #68A22A #2AA2A0
split-complementary
#642AA2 #A2A02A #2CA22A
monochromatic
#281141 #461D71 #642AA2 #823DCD #A16DD9

Accessibility & contrast

On white

8.77
#642AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#642AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA2
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA2#FFFFFF#000000##FFFFFF
##642AA21.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#564864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642aa2;
/* rgb */ color: rgb(100, 42, 162);
/* oklch */ color: oklch(43.4% 0.181 301.0);
Tailwind
colors: {
  custom: {
    50: '#9669be',
    500: '#642aa2',
    950: '#000000',
  },
}
SCSS
$custom: #642aa2;
$custom-light: #9669be;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa2",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 269,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.43363,
    "c": 0.18145,
    "h": 301
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#642AA2
secondary
#95C068
accent
#E24697
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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