#642E97#642E97

#642E97 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.164 H 303.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#642E97
RGBrgb(100, 46, 151)
HSLhsl(271, 53%, 39%)
HSVhsv(271, 70%, 59%)
CMYKcmyk(33.8%, 69.5%, 0%, 40.8%)
CIE-LABlab(31.57, 44.50, -48.09)
CIE-LCHlch(31.57, 65.52, 312.78°)
OKLaboklab(42.97% 0.0913 -0.1367)
OKLCHoklch(42.97% 0.164 303.7)
XYZxyz(11.8172, 6.8977, 29.9810)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E97 #61972E
analogous
#2F2E97 #642E97 #972E95
triadic
#642E97 #97642E #2E9764
tetradic
#642E97 #972F2E #61972E #2E9597
square
#642E97 #972F2E #61972E #2E9597
split-complementary
#642E97 #95972E #2E972F
monochromatic
#261139 #452068 #642E97 #833EC4 #A16DD2

Accessibility & contrast

On white

8.83
#642E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#642E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E97
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E97#FFFFFF#000000##FFFFFF
##642E971.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642e97;
/* rgb */ color: rgb(100, 46, 151);
/* oklch */ color: oklch(43.0% 0.164 303.7);
Tailwind
colors: {
  custom: {
    50: '#956bb6',
    500: '#642e97',
    950: '#000000',
  },
}
SCSS
$custom: #642e97;
$custom-light: #956bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#642e97",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 270.857,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4297,
    "c": 0.16438,
    "h": 303.7
  },
  "luminance": 0.06898
}

Semantic roles & 50–950 ramp

primary
#642E97
secondary
#8FBA67
accent
#DD4B92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642E97

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

Preview Lab → · Contrast checker → · Palette generator →

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