#642AA6#642AA6

#642AA6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.186 H 299.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#642AA6
RGBrgb(100, 42, 166)
HSLhsl(268, 60%, 41%)
HSVhsv(268, 75%, 65%)
CMYKcmyk(39.8%, 74.7%, 0%, 34.9%)
CIE-LABlab(32.07, 50.16, -56.38)
CIE-LCHlch(32.07, 75.46, 311.66°)
OKLaboklab(43.7% 0.0927 -0.161)
OKLCHoklch(43.7% 0.186 299.9)
XYZxyz(12.9647, 7.1183, 36.7599)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA6 #6CA62A
analogous
#2A2EA6 #642AA6 #A22AA6
triadic
#642AA6 #A6642A #2AA664
tetradic
#642AA6 #A62A2E #6CA62A #2AA6A2
square
#642AA6 #A62A2E #6CA62A #2AA6A2
split-complementary
#642AA6 #A6A22A #2EA62A
monochromatic
#291144 #471E75 #642AA6 #823FCE #A270DB

Accessibility & contrast

On white

8.66
#642AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#642AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA6
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA6#FFFFFF#000000##FFFFFF
##642AA61.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#554A66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642aa6;
/* rgb */ color: rgb(100, 42, 166);
/* oklch */ color: oklch(43.7% 0.186 299.9);
Tailwind
colors: {
  custom: {
    50: '#9669c1',
    500: '#642aa6',
    950: '#000000',
  },
}
SCSS
$custom: #642aa6;
$custom-light: #9669c1;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa6",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 268.065,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.18576,
    "h": 299.9
  },
  "luminance": 0.07118
}

Semantic roles & 50–950 ramp

primary
#642AA6
secondary
#99C26A
accent
#E34599
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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