#642CA6#642CA6

#642CA6 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.183 H 299.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#642CA6
RGBrgb(100, 44, 166)
HSLhsl(268, 58%, 41%)
HSVhsv(268, 73%, 65%)
CMYKcmyk(39.8%, 73.5%, 0%, 34.9%)
CIE-LABlab(32.40, 49.24, -55.85)
CIE-LCHlch(32.40, 74.45, 311.40°)
OKLaboklab(43.93% 0.0908 -0.1595)
OKLCHoklch(43.93% 0.183 299.6)
XYZxyz(13.0374, 7.2637, 36.7842)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA6 #6EA62C
analogous
#2C31A6 #642CA6 #A12CA6
triadic
#642CA6 #A6642C #2CA664
tetradic
#642CA6 #A62C31 #6EA62C #2CA6A1
square
#642CA6 #A62C31 #6EA62C #2CA6A1
split-complementary
#642CA6 #A6A12C #31A62C
monochromatic
#2A1245 #471F76 #642CA6 #8242CD #A273DA

Accessibility & contrast

On white

8.56
#642CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#642CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CA6
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA6#FFFFFF#000000##FFFFFF
##642CA61.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004BA4
Tritanopia (blue-blind)
#554B66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ca6;
/* rgb */ color: rgb(100, 44, 166);
/* oklch */ color: oklch(43.9% 0.183 299.6);
Tailwind
colors: {
  custom: {
    50: '#966ac1',
    500: '#642ca6',
    950: '#000000',
  },
}
SCSS
$custom: #642ca6;
$custom-light: #966ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca6",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 267.541,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43926,
    "c": 0.18349,
    "h": 299.6
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#642CA6
secondary
#9AC16D
accent
#E1469A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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