#642C8A#642C8A

#642C8A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.153 H 308.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#642C8A
RGBrgb(100, 44, 138)
HSLhsl(276, 52%, 36%)
HSVhsv(276, 68%, 54%)
CMYKcmyk(27.5%, 68.1%, 0%, 45.9%)
CIE-LABlab(30.27, 42.31, -42.20)
CIE-LCHlch(30.27, 59.76, 315.08°)
OKLaboklab(41.74% 0.0951 -0.1194)
OKLCHoklch(41.74% 0.153 308.5)
XYZxyz(10.7427, 6.3458, 24.6988)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C8A #528A2C
analogous
#352C8A #642C8A #8A2C81
triadic
#642C8A #8A642C #2C8A64
tetradic
#642C8A #8A352C #528A2C #2C818A
square
#642C8A #8A352C #528A2C #2C818A
split-complementary
#642C8A #818A2C #2C8A35
monochromatic
#210E2D #421D5C #642C8A #863BB8 #A263CD

Accessibility & contrast

On white

9.25
#642C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C8A
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C8A#FFFFFF#000000##FFFFFF
##642C8A1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#1A4888
Tritanopia (blue-blind)
#5E4057
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642c8a;
/* rgb */ color: rgb(100, 44, 138);
/* oklch */ color: oklch(41.7% 0.153 308.5);
Tailwind
colors: {
  custom: {
    50: '#9469ad',
    500: '#642c8a',
    950: '#000000',
  },
}
SCSS
$custom: #642c8a;
$custom-light: #9469ad;
$custom-dark: #000000;
JSON
{
  "hex": "#642c8a",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 275.745,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41736,
    "c": 0.15261,
    "h": 308.5
  },
  "luminance": 0.06346
}

Semantic roles & 50–950 ramp

primary
#642C8A
secondary
#81B45E
accent
#DB4D86
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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