#642A97#642A97

#642A97 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.170 H 304.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#642A97
RGBrgb(100, 42, 151)
HSLhsl(272, 56%, 38%)
HSVhsv(272, 72%, 59%)
CMYKcmyk(33.8%, 72.2%, 0%, 40.8%)
CIE-LABlab(30.88, 46.44, -49.22)
CIE-LCHlch(30.88, 67.67, 313.34°)
OKLaboklab(42.47% 0.0957 -0.14)
OKLCHoklch(42.47% 0.17 304.3)
XYZxyz(11.6681, 6.5997, 29.9313)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A97 #5D972A
analogous
#2E2A97 #642A97 #972A93
triadic
#642A97 #97642A #2A9764
tetradic
#642A97 #972E2A #5D972A #2A9397
square
#642A97 #972E2A #5D972A #2A9397
split-complementary
#642A97 #93972A #2A972E
monochromatic
#250F37 #441D67 #642A97 #8437C7 #A167D5

Accessibility & contrast

On white

9.05
#642A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#642A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A97
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A97#FFFFFF#000000##FFFFFF
##642A971.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642a97;
/* rgb */ color: rgb(100, 42, 151);
/* oklch */ color: oklch(42.5% 0.170 304.3);
Tailwind
colors: {
  custom: {
    50: '#9569b6',
    500: '#642a97',
    950: '#000000',
  },
}
SCSS
$custom: #642a97;
$custom-light: #9569b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642a97",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 271.927,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42474,
    "c": 0.16954,
    "h": 304.3
  },
  "luminance": 0.066
}

Semantic roles & 50–950 ramp

primary
#642A97
secondary
#8CBB62
accent
#E0488F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642A97

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

Preview Lab → · Contrast checker → · Palette generator →

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