#642C8B#642C8B

#642C8B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.154 H 308.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#642C8B
RGBrgb(100, 44, 139)
HSLhsl(275, 52%, 36%)
HSVhsv(275, 68%, 55%)
CMYKcmyk(28.1%, 68.3%, 0%, 45.5%)
CIE-LABlab(30.34, 42.55, -42.71)
CIE-LCHlch(30.34, 60.29, 314.90°)
OKLaboklab(41.81% 0.095 -0.1208)
OKLCHoklch(41.81% 0.154 308.2)
XYZxyz(10.8155, 6.3749, 25.0818)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C8B #538B2C
analogous
#342C8B #642C8B #8B2C82
triadic
#642C8B #8B642C #2C8B64
tetradic
#642C8B #8B342C #538B2C #2C828B
square
#642C8B #8B342C #538B2C #2C828B
split-complementary
#642C8B #828B2C #2C8B34
monochromatic
#210F2E #431D5D #642C8B #853BB9 #A264CE

Accessibility & contrast

On white

9.23
#642C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642C8B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C8B#FFFFFF#000000##FFFFFF
##642C8B1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#194889
Tritanopia (blue-blind)
#5E4058
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642c8b;
/* rgb */ color: rgb(100, 44, 139);
/* oklch */ color: oklch(41.8% 0.154 308.2);
Tailwind
colors: {
  custom: {
    50: '#9469ad',
    500: '#642c8b',
    950: '#000000',
  },
}
SCSS
$custom: #642c8b;
$custom-light: #9469ad;
$custom-dark: #000000;
JSON
{
  "hex": "#642c8b",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 275.368,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.15373,
    "h": 308.2
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#642C8B
secondary
#82B45F
accent
#DB4C87
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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