#642AA4#642AA4

#642AA4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.184 H 300.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#642AA4
RGBrgb(100, 42, 164)
HSLhsl(269, 59%, 40%)
HSVhsv(269, 74%, 64%)
CMYKcmyk(39%, 74.4%, 0%, 35.7%)
CIE-LABlab(31.91, 49.66, -55.44)
CIE-LCHlch(31.91, 74.43, 311.85°)
OKLaboklab(43.53% 0.0931 -0.1582)
OKLCHoklch(43.53% 0.184 300.5)
XYZxyz(12.7827, 7.0455, 35.8012)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA4 #6AA42A
analogous
#2A2DA4 #642AA4 #A12AA4
triadic
#642AA4 #A4642A #2AA464
tetradic
#642AA4 #A42A2D #6AA42A #2AA4A1
square
#642AA4 #A42A2D #6AA42A #2AA4A1
split-complementary
#642AA4 #A4A12A #2DA42A
monochromatic
#291143 #461E73 #642AA4 #823ECD #A26EDA

Accessibility & contrast

On white

8.72
#642AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#642AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA4
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA4#FFFFFF#000000##FFFFFF
##642AA41.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#554965
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642aa4;
/* rgb */ color: rgb(100, 42, 164);
/* oklch */ color: oklch(43.5% 0.184 300.5);
Tailwind
colors: {
  custom: {
    50: '#9669c0',
    500: '#642aa4',
    950: '#000000',
  },
}
SCSS
$custom: #642aa4;
$custom-light: #9669c0;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa4",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 268.525,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43529,
    "c": 0.1836,
    "h": 300.5
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#642AA4
secondary
#97C169
accent
#E24598
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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