#642D99#642D99

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

Color values

HEX#642D99
RGBrgb(100, 45, 153)
HSLhsl(271, 55%, 39%)
HSVhsv(271, 71%, 60%)
CMYKcmyk(34.6%, 70.6%, 0%, 40%)
CIE-LABlab(31.55, 45.49, -49.36)
CIE-LCHlch(31.55, 67.12, 312.67°)
OKLaboklab(43% 0.0921 -0.1404)
OKLCHoklch(43% 0.168 303.3)
XYZxyz(11.9424, 6.8860, 30.8308)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D99 #62992D
analogous
#2E2D99 #642D99 #992D98
triadic
#642D99 #99642D #2D9964
tetradic
#642D99 #992E2D #62992D #2D9899
square
#642D99 #992E2D #62992D #2D9899
split-complementary
#642D99 #98992D #2D992E
monochromatic
#26113A #451F6A #642D99 #833DC6 #A16CD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642D99#FFFFFF#000000##FFFFFF
##642D991.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)
#00499C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#59465F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642d99;
/* rgb */ color: rgb(100, 45, 153);
/* oklch */ color: oklch(43.0% 0.168 303.3);
Tailwind
colors: {
  custom: {
    50: '#956ab8',
    500: '#642d99',
    950: '#000000',
  },
}
SCSS
$custom: #642d99;
$custom-light: #956ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#642d99",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 270.556,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42998,
    "c": 0.16792,
    "h": 303.3
  },
  "luminance": 0.06886
}

Semantic roles & 50–950 ramp

primary
#642D99
secondary
#90BB67
accent
#DE4A93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642D99

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

Preview Lab → · Contrast checker → · Palette generator →

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