#642CA2#642CA2

#642CA2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.179 H 300.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#642CA2
RGBrgb(100, 44, 162)
HSLhsl(268, 57%, 40%)
HSVhsv(268, 73%, 64%)
CMYKcmyk(38.3%, 72.8%, 0%, 36.5%)
CIE-LABlab(32.08, 48.23, -53.96)
CIE-LCHlch(32.08, 72.37, 311.79°)
OKLaboklab(43.6% 0.0916 -0.1539)
OKLCHoklch(43.6% 0.179 300.8)
XYZxyz(12.6762, 7.1192, 34.8817)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA2 #6AA22C
analogous
#2C2FA2 #642CA2 #9F2CA2
triadic
#642CA2 #A2642C #2CA264
tetradic
#642CA2 #A22C2F #6AA22C #2CA29F
square
#642CA2 #A22C2F #6AA22C #2CA29F
split-complementary
#642CA2 #A29F2C #2FA22C
monochromatic
#291242 #461F72 #642CA2 #8240CB #A270D8

Accessibility & contrast

On white

8.66
#642CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#642CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CA2
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA2#FFFFFF#000000##FFFFFF
##642CA21.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#564964
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642ca2;
/* rgb */ color: rgb(100, 44, 162);
/* oklch */ color: oklch(43.6% 0.179 300.8);
Tailwind
colors: {
  custom: {
    50: '#966abe',
    500: '#642ca2',
    950: '#000000',
  },
}
SCSS
$custom: #642ca2;
$custom-light: #966abe;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca2",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 268.475,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43596,
    "c": 0.1791,
    "h": 300.8
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#642CA2
secondary
#97BF6A
accent
#E14798
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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