#642C8D#642C8D

#642C8D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.156 H 307.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#642C8D
RGBrgb(100, 44, 141)
HSLhsl(275, 52%, 36%)
HSVhsv(275, 69%, 55%)
CMYKcmyk(29.1%, 68.8%, 0%, 44.7%)
CIE-LABlab(30.48, 43.04, -43.71)
CIE-LCHlch(30.48, 61.34, 314.55°)
OKLaboklab(41.96% 0.0948 -0.1238)
OKLCHoklch(41.96% 0.156 307.4)
XYZxyz(10.9629, 6.4339, 25.8585)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C8D #558D2C
analogous
#342C8D #642C8D #8D2C86
triadic
#642C8D #8D642C #2C8D64
tetradic
#642C8D #8D342C #558D2C #2C868D
square
#642C8D #8D342C #558D2C #2C868D
split-complementary
#642C8D #868D2C #2C8D34
monochromatic
#220F30 #431D5E #642C8D #853BBC #A265CF

Accessibility & contrast

On white

9.18
#642C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C8D
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C8D#FFFFFF#000000##FFFFFF
##642C8D1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#16488B
Tritanopia (blue-blind)
#5D4159
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642c8d;
/* rgb */ color: rgb(100, 44, 141);
/* oklch */ color: oklch(42.0% 0.156 307.4);
Tailwind
colors: {
  custom: {
    50: '#9469af',
    500: '#642c8d',
    950: '#000000',
  },
}
SCSS
$custom: #642c8d;
$custom-light: #9469af;
$custom-dark: #000000;
JSON
{
  "hex": "#642c8d",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 274.639,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41957,
    "c": 0.15594,
    "h": 307.4
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#642C8D
secondary
#84B560
accent
#DC4C89
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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