#642D9F#642D9F

#642D9F is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.175 H 301.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#642D9F
RGBrgb(100, 45, 159)
HSLhsl(269, 56%, 40%)
HSVhsv(269, 72%, 62%)
CMYKcmyk(37.1%, 71.7%, 0%, 37.6%)
CIE-LABlab(32.01, 47.00, -52.25)
CIE-LCHlch(32.01, 70.28, 311.97°)
OKLaboklab(43.47% 0.0911 -0.1489)
OKLCHoklch(43.47% 0.175 301.5)
XYZxyz(12.4504, 7.0892, 33.5066)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D9F #689F2D
analogous
#2D2F9F #642D9F #9D2D9F
triadic
#642D9F #9F642D #2D9F64
tetradic
#642D9F #9F2D2F #689F2D #2D9F9D
square
#642D9F #9F2D2F #689F2D #2D9F9D
split-complementary
#642D9F #9F9D2D #2F9F2D
monochromatic
#281240 #46206F #642D9F #8240C9 #A170D6

Accessibility & contrast

On white

8.69
#642D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642D9F
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D9F#FFFFFF#000000##FFFFFF
##642D9F1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#574863
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642d9f;
/* rgb */ color: rgb(100, 45, 159);
/* oklch */ color: oklch(43.5% 0.175 301.5);
Tailwind
colors: {
  custom: {
    50: '#956bbc',
    500: '#642d9f',
    950: '#000000',
  },
}
SCSS
$custom: #642d9f;
$custom-light: #956bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#642d9f",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 268.947,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.43474,
    "c": 0.17458,
    "h": 301.5
  },
  "luminance": 0.07089
}

Semantic roles & 50–950 ramp

primary
#642D9F
secondary
#95BE6A
accent
#DF4997
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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