#642AA0#642AA0

#642AA0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.179 H 301.6°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#642AA0
RGBrgb(100, 42, 160)
HSLhsl(269, 58%, 40%)
HSVhsv(269, 74%, 63%)
CMYKcmyk(37.5%, 73.8%, 0%, 37.3%)
CIE-LABlab(31.59, 48.66, -53.55)
CIE-LCHlch(31.59, 72.36, 312.26°)
OKLaboklab(43.2% 0.094 -0.1527)
OKLCHoklch(43.2% 0.179 301.6)
XYZxyz(12.4271, 6.9033, 33.9286)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA0 #66A02A
analogous
#2A2BA0 #642AA0 #9F2AA0
triadic
#642AA0 #A0642A #2AA064
tetradic
#642AA0 #A02A2B #66A02A #2AA09F
square
#642AA0 #A02A2B #66A02A #2AA09F
split-complementary
#642AA0 #A09F2A #2BA02A
monochromatic
#27113F #461D70 #642AA0 #823CCC #A16CD8

Accessibility & contrast

On white

8.82
#642AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#642AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA0
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA0#FFFFFF#000000##FFFFFF
##642AA01.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#004A9E
Tritanopia (blue-blind)
#574762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642aa0;
/* rgb */ color: rgb(100, 42, 160);
/* oklch */ color: oklch(43.2% 0.179 301.6);
Tailwind
colors: {
  custom: {
    50: '#9669bd',
    500: '#642aa0',
    950: '#000000',
  },
}
SCSS
$custom: #642aa0;
$custom-light: #9669bd;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa0",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 269.492,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43198,
    "c": 0.17929,
    "h": 301.6
  },
  "luminance": 0.06903
}

Semantic roles & 50–950 ramp

primary
#642AA0
secondary
#94BF67
accent
#E24695
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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