#642C9D#642C9D

#642C9D is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.174 H 302.2°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#642C9D
RGBrgb(100, 44, 157)
HSLhsl(270, 56%, 39%)
HSVhsv(270, 72%, 62%)
CMYKcmyk(36.3%, 72%, 0%, 38.4%)
CIE-LABlab(31.68, 46.97, -51.57)
CIE-LCHlch(31.68, 69.76, 312.33°)
OKLaboklab(43.19% 0.0925 -0.1469)
OKLCHoklch(43.19% 0.174 302.2)
XYZxyz(12.2406, 6.9450, 32.5874)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C9D #659D2C
analogous
#2C2C9D #642C9D #9D2C9D
triadic
#642C9D #9D642C #2C9D64
tetradic
#642C9D #9D2C2C #659D2C #2C9D9D
square
#642C9D #9D2C2C #659D2C #2C9D9D
split-complementary
#642C9D #9D9D2C #2C9D2C
monochromatic
#27113D #461F6D #642C9D #823DC9 #A16DD6

Accessibility & contrast

On white

8.79
#642C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#642C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C9D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C9D#FFFFFF#000000##FFFFFF
##642C9D1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#584761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642c9d;
/* rgb */ color: rgb(100, 44, 157);
/* oklch */ color: oklch(43.2% 0.174 302.2);
Tailwind
colors: {
  custom: {
    50: '#956abb',
    500: '#642c9d',
    950: '#000000',
  },
}
SCSS
$custom: #642c9d;
$custom-light: #956abb;
$custom-dark: #000000;
JSON
{
  "hex": "#642c9d",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 269.735,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.17361,
    "h": 302.2
  },
  "luminance": 0.06945
}

Semantic roles & 50–950 ramp

primary
#642C9D
secondary
#93BD68
accent
#E04895
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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