#642C8C#642C8C

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

Color values

HEX#642C8C
RGBrgb(100, 44, 140)
HSLhsl(275, 52%, 36%)
HSVhsv(275, 69%, 55%)
CMYKcmyk(28.6%, 68.6%, 0%, 45.1%)
CIE-LABlab(30.41, 42.79, -43.21)
CIE-LCHlch(30.41, 60.82, 314.72°)
OKLaboklab(41.88% 0.0949 -0.1223)
OKLCHoklch(41.88% 0.155 307.8)
XYZxyz(10.8889, 6.4043, 25.4684)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C8C #548C2C
analogous
#342C8C #642C8C #8C2C84
triadic
#642C8C #8C642C #2C8C64
tetradic
#642C8C #8C342C #548C2C #2C848C
square
#642C8C #8C342C #548C2C #2C848C
split-complementary
#642C8C #848C2C #2C8C34
monochromatic
#210F2F #431D5D #642C8C #853BBB #A264CE

Accessibility & contrast

On white

9.21
#642C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642C8C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C8C#FFFFFF#000000##FFFFFF
##642C8C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#17488A
Tritanopia (blue-blind)
#5E4158
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642c8c;
/* rgb */ color: rgb(100, 44, 140);
/* oklch */ color: oklch(41.9% 0.155 307.8);
Tailwind
colors: {
  custom: {
    50: '#9469ae',
    500: '#642c8c',
    950: '#000000',
  },
}
SCSS
$custom: #642c8c;
$custom-light: #9469ae;
$custom-dark: #000000;
JSON
{
  "hex": "#642c8c",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 275,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41883,
    "c": 0.15483,
    "h": 307.8
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#642C8C
secondary
#83B55F
accent
#DC4C88
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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