#642D8F#642D8F

#642D8F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.157 H 306.6°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#642D8F
RGBrgb(100, 45, 143)
HSLhsl(274, 52%, 37%)
HSVhsv(274, 69%, 56%)
CMYKcmyk(30.1%, 68.5%, 0%, 43.9%)
CIE-LABlab(30.81, 43.02, -44.42)
CIE-LCHlch(30.81, 61.84, 314.08°)
OKLaboklab(42.24% 0.0934 -0.1259)
OKLCHoklch(42.24% 0.157 306.6)
XYZxyz(11.1508, 6.5694, 26.6619)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D8F #588F2D
analogous
#332D8F #642D8F #8F2D89
triadic
#642D8F #8F642D #2D8F64
tetradic
#642D8F #8F332D #588F2D #2D898F
square
#642D8F #8F332D #588F2D #2D898F
split-complementary
#642D8F #898F2D #2D8F33
monochromatic
#231032 #431E60 #642D8F #853CBE #A267CF

Accessibility & contrast

On white

9.08
#642D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#642D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D8F
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D8F#FFFFFF#000000##FFFFFF
##642D8F1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#14498D
Tritanopia (blue-blind)
#5D425A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642d8f;
/* rgb */ color: rgb(100, 45, 143);
/* oklch */ color: oklch(42.2% 0.157 306.6);
Tailwind
colors: {
  custom: {
    50: '#946ab0',
    500: '#642d8f',
    950: '#000000',
  },
}
SCSS
$custom: #642d8f;
$custom-light: #946ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#642d8f",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 273.673,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42235,
    "c": 0.15678,
    "h": 306.6
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#642D8F
secondary
#87B662
accent
#DC4C8B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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