#642D8A#642D8A

#642D8A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.151 H 308.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#642D8A
RGBrgb(100, 45, 138)
HSLhsl(275, 51%, 36%)
HSVhsv(275, 67%, 54%)
CMYKcmyk(27.5%, 67.4%, 0%, 45.9%)
CIE-LABlab(30.45, 41.81, -41.91)
CIE-LCHlch(30.45, 59.20, 314.93°)
OKLaboklab(41.87% 0.0939 -0.1185)
OKLCHoklch(41.87% 0.151 308.4)
XYZxyz(10.7804, 6.4212, 24.7113)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D8A #538A2D
analogous
#352D8A #642D8A #8A2D81
triadic
#642D8A #8A642D #2D8A64
tetradic
#642D8A #8A352D #538A2D #2D818A
square
#642D8A #8A352D #538A2D #2D818A
split-complementary
#642D8A #818A2D #2D8A35
monochromatic
#210F2E #431E5C #642D8A #853CB8 #A265CD

Accessibility & contrast

On white

9.19
#642D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#642D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D8A
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D8A#FFFFFF#000000##FFFFFF
##642D8A1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#1C4888
Tritanopia (blue-blind)
#5E4057
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642d8a;
/* rgb */ color: rgb(100, 45, 138);
/* oklch */ color: oklch(41.9% 0.151 308.4);
Tailwind
colors: {
  custom: {
    50: '#946aad',
    500: '#642d8a',
    950: '#000000',
  },
}
SCSS
$custom: #642d8a;
$custom-light: #946aad;
$custom-dark: #000000;
JSON
{
  "hex": "#642d8a",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 275.484,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41867,
    "c": 0.15119,
    "h": 308.4
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#642D8A
secondary
#82B360
accent
#DA4D87
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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