#642C9A#642C9A

#642C9A is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.170 H 303.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#642C9A
RGBrgb(100, 44, 154)
HSLhsl(271, 56%, 39%)
HSVhsv(271, 71%, 60%)
CMYKcmyk(35.1%, 71.4%, 0%, 39.6%)
CIE-LABlab(31.45, 46.23, -50.12)
CIE-LCHlch(31.45, 68.19, 312.68°)
OKLaboklab(42.95% 0.093 -0.1426)
OKLCHoklch(42.95% 0.17 303.1)
XYZxyz(11.9876, 6.8438, 31.2550)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C9A #629A2C
analogous
#2D2C9A #642C9A #9A2C99
triadic
#642C9A #9A642C #2C9A64
tetradic
#642C9A #9A2D2C #629A2C #2C999A
square
#642C9A #9A2D2C #629A2C #2C999A
split-complementary
#642C9A #999A2C #2C9A2D
monochromatic
#26113B #451E6A #642C9A #833CC7 #A16CD5

Accessibility & contrast

On white

8.87
#642C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#642C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C9A
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C9A#FFFFFF#000000##FFFFFF
##642C9A1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#594660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642c9a;
/* rgb */ color: rgb(100, 44, 154);
/* oklch */ color: oklch(43.0% 0.170 303.1);
Tailwind
colors: {
  custom: {
    50: '#956ab9',
    500: '#642c9a',
    950: '#000000',
  },
}
SCSS
$custom: #642c9a;
$custom-light: #956ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#642c9a",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 270.545,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42953,
    "c": 0.1703,
    "h": 303.1
  },
  "luminance": 0.06844
}

Semantic roles & 50–950 ramp

primary
#642C9A
secondary
#90BC66
accent
#DF4993
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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