#642D97#642D97

#642D97 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.166 H 303.9°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#642D97
RGBrgb(100, 45, 151)
HSLhsl(271, 54%, 38%)
HSVhsv(271, 70%, 59%)
CMYKcmyk(33.8%, 70.2%, 0%, 40.8%)
CIE-LABlab(31.39, 44.99, -48.38)
CIE-LCHlch(31.39, 66.07, 312.92°)
OKLaboklab(42.84% 0.0924 -0.1375)
OKLCHoklch(42.84% 0.166 303.9)
XYZxyz(11.7786, 6.8205, 29.9681)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D97 #60972D
analogous
#2F2D97 #642D97 #972D95
triadic
#642D97 #97642D #2D9764
tetradic
#642D97 #972F2D #60972D #2D9597
square
#642D97 #972F2D #60972D #2D9597
split-complementary
#642D97 #95972D #2D972F
monochromatic
#261139 #451F68 #642D97 #833CC5 #A16BD3

Accessibility & contrast

On white

8.88
#642D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#642D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D97
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D97#FFFFFF#000000##FFFFFF
##642D971.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#5A455E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642d97;
/* rgb */ color: rgb(100, 45, 151);
/* oklch */ color: oklch(42.8% 0.166 303.9);
Tailwind
colors: {
  custom: {
    50: '#956ab6',
    500: '#642d97',
    950: '#000000',
  },
}
SCSS
$custom: #642d97;
$custom-light: #956ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#642d97",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 271.132,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42843,
    "c": 0.1657,
    "h": 303.9
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

primary
#642D97
secondary
#8EBA66
accent
#DD4A91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642D97

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

Preview Lab → · Contrast checker → · Palette generator →

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