#642C99#642C99

#642C99 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.169 H 303.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#642C99
RGBrgb(100, 44, 153)
HSLhsl(271, 55%, 39%)
HSVhsv(271, 71%, 60%)
CMYKcmyk(34.6%, 71.2%, 0%, 40%)
CIE-LABlab(31.37, 45.98, -49.64)
CIE-LCHlch(31.37, 67.66, 312.81°)
OKLaboklab(42.87% 0.0932 -0.1412)
OKLCHoklch(42.87% 0.169 303.4)
XYZxyz(11.9046, 6.8106, 30.8182)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C99 #61992C
analogous
#2D2C99 #642C99 #992C97
triadic
#642C99 #99642C #2C9964
tetradic
#642C99 #992D2C #61992C #2C9799
square
#642C99 #992D2C #61992C #2C9799
split-complementary
#642C99 #97992C #2C992D
monochromatic
#26113A #451E69 #642C99 #833BC7 #A16BD4

Accessibility & contrast

On white

8.89
#642C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#642C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C99
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C99#FFFFFF#000000##FFFFFF
##642C991.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#5A465F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642c99;
/* rgb */ color: rgb(100, 44, 153);
/* oklch */ color: oklch(42.9% 0.169 303.4);
Tailwind
colors: {
  custom: {
    50: '#956ab8',
    500: '#642c99',
    950: '#000000',
  },
}
SCSS
$custom: #642c99;
$custom-light: #956ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#642c99",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 270.826,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.1692,
    "h": 303.4
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#642C99
secondary
#8FBB66
accent
#DF4992
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642C99

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

Preview Lab → · Contrast checker → · Palette generator →

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