#642C96#642C96

#642C96 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.166 H 304.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#642C96
RGBrgb(100, 44, 150)
HSLhsl(272, 55%, 38%)
HSVhsv(272, 71%, 59%)
CMYKcmyk(33.3%, 70.7%, 0%, 41.2%)
CIE-LABlab(31.14, 45.24, -48.18)
CIE-LCHlch(31.14, 66.08, 313.20°)
OKLaboklab(42.64% 0.0937 -0.1369)
OKLCHoklch(42.64% 0.166 304.4)
XYZxyz(11.6600, 6.7127, 29.5297)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C96 #5E962C
analogous
#2F2C96 #642C96 #962C93
triadic
#642C96 #96642C #2C9664
tetradic
#642C96 #962F2C #5E962C #2C9396
square
#642C96 #962F2C #5E962C #2C9396
split-complementary
#642C96 #93962C #2C962F
monochromatic
#251037 #441E67 #642C96 #843AC5 #A169D3

Accessibility & contrast

On white

8.96
#642C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#642C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C96
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C96#FFFFFF#000000##FFFFFF
##642C961.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#5B445E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642c96;
/* rgb */ color: rgb(100, 44, 150);
/* oklch */ color: oklch(42.6% 0.166 304.4);
Tailwind
colors: {
  custom: {
    50: '#956ab6',
    500: '#642c96',
    950: '#000000',
  },
}
SCSS
$custom: #642c96;
$custom-light: #956ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#642c96",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 271.698,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.16589,
    "h": 304.4
  },
  "luminance": 0.06713
}

Semantic roles & 50–950 ramp

primary
#642C96
secondary
#8CBA64
accent
#DE4A90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642C96

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

Preview Lab → · Contrast checker → · Palette generator →

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