#642C9B#642C9B

#642C9B is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.171 H 302.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#642C9B
RGBrgb(100, 44, 155)
HSLhsl(270, 56%, 39%)
HSVhsv(270, 72%, 61%)
CMYKcmyk(35.5%, 71.6%, 0%, 39.2%)
CIE-LABlab(31.53, 46.48, -50.61)
CIE-LCHlch(31.53, 68.71, 312.56°)
OKLaboklab(43.03% 0.0929 -0.1441)
OKLCHoklch(43.03% 0.171 302.8)
XYZxyz(12.0712, 6.8772, 31.6955)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C9B #639B2C
analogous
#2C2C9B #642C9B #9B2C9B
triadic
#642C9B #9B642C #2C9B64
tetradic
#642C9B #9B2C2C #639B2C #2C9B9B
square
#642C9B #9B2C2C #639B2C #2C9B9B
split-complementary
#642C9B #9B9B2C #2C9B2C
monochromatic
#26113C #451E6B #642C9B #833CC8 #A16CD5

Accessibility & contrast

On white

8.84
#642C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642C9B
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C9B#FFFFFF#000000##FFFFFF
##642C9B1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642c9b;
/* rgb */ color: rgb(100, 44, 155);
/* oklch */ color: oklch(43.0% 0.171 302.8);
Tailwind
colors: {
  custom: {
    50: '#956ab9',
    500: '#642c9b',
    950: '#000000',
  },
}
SCSS
$custom: #642c9b;
$custom-light: #956ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#642c9b",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 270.27,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43032,
    "c": 0.17141,
    "h": 302.8
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#642C9B
secondary
#91BC67
accent
#DF4993
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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