#642D9B#642D9B

#642D9B is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.170 H 302.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#642D9B
RGBrgb(100, 45, 155)
HSLhsl(270, 55%, 39%)
HSVhsv(270, 71%, 61%)
CMYKcmyk(35.5%, 71%, 0%, 39.2%)
CIE-LABlab(31.70, 45.99, -50.33)
CIE-LCHlch(31.70, 68.18, 312.42°)
OKLaboklab(43.16% 0.0918 -0.1432)
OKLCHoklch(43.16% 0.17 302.7)
XYZxyz(12.1089, 6.9526, 31.7080)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D9B #649B2D
analogous
#2D2D9B #642D9B #9B2D9B
triadic
#642D9B #9B642D #2D9B64
tetradic
#642D9B #9B2D2D #649B2D #2D9B9B
square
#642D9B #9B2D2D #649B2D #2D9B9B
split-complementary
#642D9B #9B9B2D #2D9B2D
monochromatic
#27113C #451F6C #642D9B #833EC7 #A16ED5

Accessibility & contrast

On white

8.78
#642D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#642D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D9B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D9B#FFFFFF#000000##FFFFFF
##642D9B1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#594761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642d9b;
/* rgb */ color: rgb(100, 45, 155);
/* oklch */ color: oklch(43.2% 0.170 302.7);
Tailwind
colors: {
  custom: {
    50: '#956bb9',
    500: '#642d9b',
    950: '#000000',
  },
}
SCSS
$custom: #642d9b;
$custom-light: #956bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#642d9b",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 270,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43156,
    "c": 0.17015,
    "h": 302.7
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#642D9B
secondary
#92BC68
accent
#DE4994
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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