#642C9C#642C9C

#642C9C is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.173 H 302.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#642C9C
RGBrgb(100, 44, 156)
HSLhsl(270, 56%, 39%)
HSVhsv(270, 72%, 61%)
CMYKcmyk(35.9%, 71.8%, 0%, 38.8%)
CIE-LABlab(31.60, 46.72, -51.09)
CIE-LCHlch(31.60, 69.23, 312.44°)
OKLaboklab(43.11% 0.0927 -0.1455)
OKLCHoklch(43.11% 0.173 302.5)
XYZxyz(12.1555, 6.9110, 32.1396)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C9C #649C2C
analogous
#2C2C9C #642C9C #9C2C9C
triadic
#642C9C #9C642C #2C9C64
tetradic
#642C9C #9C2C2C #649C2C #2C9C9C
square
#642C9C #9C2C2C #649C2C #2C9C9C
split-complementary
#642C9C #9C9C2C #2C9C2C
monochromatic
#27113D #451F6C #642C9C #833DC8 #A16DD6

Accessibility & contrast

On white

8.82
#642C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642C9C
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C9C#FFFFFF#000000##FFFFFF
##642C9C1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#584761
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642c9c;
/* rgb */ color: rgb(100, 44, 156);
/* oklch */ color: oklch(43.1% 0.173 302.5);
Tailwind
colors: {
  custom: {
    50: '#956aba',
    500: '#642c9c',
    950: '#000000',
  },
}
SCSS
$custom: #642c9c;
$custom-light: #956aba;
$custom-dark: #000000;
JSON
{
  "hex": "#642c9c",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 270,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43112,
    "c": 0.17251,
    "h": 302.5
  },
  "luminance": 0.06911
}

Semantic roles & 50–950 ramp

primary
#642C9C
secondary
#92BD67
accent
#DF4994
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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