#642CA3#642CA3

#642CA3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.180 H 300.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#642CA3
RGBrgb(100, 44, 163)
HSLhsl(268, 57%, 41%)
HSVhsv(268, 73%, 64%)
CMYKcmyk(38.7%, 73%, 0%, 36.1%)
CIE-LABlab(32.16, 48.48, -54.43)
CIE-LCHlch(32.16, 72.89, 311.69°)
OKLaboklab(43.68% 0.0914 -0.1553)
OKLCHoklch(43.68% 0.18 300.5)
XYZxyz(12.7654, 7.1549, 35.3517)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA3 #6BA32C
analogous
#2C30A3 #642CA3 #9F2CA3
triadic
#642CA3 #A3642C #2CA364
tetradic
#642CA3 #A32C30 #6BA32C #2CA39F
square
#642CA3 #A32C30 #6BA32C #2CA39F
split-complementary
#642CA3 #A39F2C #30A32C
monochromatic
#291243 #461F73 #642CA3 #8241CC #A271D9

Accessibility & contrast

On white

8.64
#642CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#642CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CA3
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA3#FFFFFF#000000##FFFFFF
##642CA31.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#564965
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ca3;
/* rgb */ color: rgb(100, 44, 163);
/* oklch */ color: oklch(43.7% 0.180 300.5);
Tailwind
colors: {
  custom: {
    50: '#966abf',
    500: '#642ca3',
    950: '#000000',
  },
}
SCSS
$custom: #642ca3;
$custom-light: #966abf;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca3",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 268.235,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43678,
    "c": 0.1802,
    "h": 300.5
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#642CA3
secondary
#98C06B
accent
#E14798
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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