#642C97#642C97

#642C97 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.167 H 304.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#642C97
RGBrgb(100, 44, 151)
HSLhsl(271, 55%, 38%)
HSVhsv(271, 71%, 59%)
CMYKcmyk(33.8%, 70.9%, 0%, 40.8%)
CIE-LABlab(31.22, 45.48, -48.66)
CIE-LCHlch(31.22, 66.61, 313.06°)
OKLaboklab(42.72% 0.0935 -0.1384)
OKLCHoklch(42.72% 0.167 304.1)
XYZxyz(11.7409, 6.7451, 29.9556)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C97 #5F972C
analogous
#2E2C97 #642C97 #972C94
triadic
#642C97 #97642C #2C9764
tetradic
#642C97 #972E2C #5F972C #2C9497
square
#642C97 #972E2C #5F972C #2C9497
split-complementary
#642C97 #94972C #2C972E
monochromatic
#251038 #451E68 #642C97 #833AC6 #A16AD4

Accessibility & contrast

On white

8.94
#642C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#642C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C97
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C97#FFFFFF#000000##FFFFFF
##642C971.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#5A455E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642c97;
/* rgb */ color: rgb(100, 44, 151);
/* oklch */ color: oklch(42.7% 0.167 304.1);
Tailwind
colors: {
  custom: {
    50: '#956ab6',
    500: '#642c97',
    950: '#000000',
  },
}
SCSS
$custom: #642c97;
$custom-light: #956ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#642c97",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 271.402,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42718,
    "c": 0.167,
    "h": 304.1
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#642C97
secondary
#8DBA65
accent
#DE4A90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642C97

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

Preview Lab → · Contrast checker → · Palette generator →

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