#642E9D#642E9D

#642E9D is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.171 H 301.9°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#642E9D
RGBrgb(100, 46, 157)
HSLhsl(269, 55%, 40%)
HSVhsv(269, 71%, 62%)
CMYKcmyk(36.3%, 70.7%, 0%, 38.4%)
CIE-LABlab(32.03, 46.00, -51.01)
CIE-LCHlch(32.03, 68.69, 312.05°)
OKLaboklab(43.44% 0.0904 -0.1453)
OKLCHoklch(43.44% 0.171 301.9)
XYZxyz(12.3169, 7.0976, 32.6128)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E9D #679D2E
analogous
#2E309D #642E9D #9C2E9D
triadic
#642E9D #9D642E #2E9D64
tetradic
#642E9D #9D2E30 #679D2E #2E9D9C
square
#642E9D #9D2E30 #679D2E #2E9D9C
split-complementary
#642E9D #9D9C2E #309D2E
monochromatic
#28123E #46206E #642E9D #8241C7 #A170D5

Accessibility & contrast

On white

8.68
#642E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#642E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E9D
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E9D#FFFFFF#000000##FFFFFF
##642E9D1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#584862
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642e9d;
/* rgb */ color: rgb(100, 46, 157);
/* oklch */ color: oklch(43.4% 0.171 301.9);
Tailwind
colors: {
  custom: {
    50: '#956bbb',
    500: '#642e9d',
    950: '#000000',
  },
}
SCSS
$custom: #642e9d;
$custom-light: #956bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#642e9d",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 269.189,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43439,
    "c": 0.1711,
    "h": 301.9
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#642E9D
secondary
#95BD6A
accent
#DE4A96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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