#642CAC#642CAC

#642CAC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.190 H 298.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#642CAC
RGBrgb(100, 44, 172)
HSLhsl(266, 59%, 42%)
HSVhsv(266, 74%, 67%)
CMYKcmyk(41.9%, 74.4%, 0%, 32.5%)
CIE-LABlab(32.90, 50.77, -58.64)
CIE-LCHlch(32.90, 77.56, 310.89°)
OKLaboklab(44.43% 0.0894 -0.1677)
OKLCHoklch(44.43% 0.19 298.1)
XYZxyz(13.6007, 7.4890, 39.7507)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CAC #74AC2C
analogous
#2C34AC #642CAC #A42CAC
triadic
#642CAC #AC642C #2CAC64
tetradic
#642CAC #AC2C34 #74AC2C #2CACA4
square
#642CAC #AC2C34 #74AC2C #2CACA4
split-complementary
#642CAC #ACA42C #34AC2C
monochromatic
#2B134B #48207B #642CAC #8246D0 #A376DC

Accessibility & contrast

On white

8.41
#642CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#642CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CAC
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CAC#FFFFFF#000000##FFFFFF
##642CAC1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#524D6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642cac;
/* rgb */ color: rgb(100, 44, 172);
/* oklch */ color: oklch(44.4% 0.190 298.1);
Tailwind
colors: {
  custom: {
    50: '#976bc6',
    500: '#642cac',
    950: '#000000',
  },
}
SCSS
$custom: #642cac;
$custom-light: #976bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#642cac",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 266.25,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44429,
    "c": 0.19003,
    "h": 298.1
  },
  "luminance": 0.07489
}

Semantic roles & 50–950 ramp

primary
#642CAC
secondary
#9FC470
accent
#E2459E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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