#642CC2#642CC2

#642CC2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.214 H 293.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#642CC2
RGBrgb(100, 44, 194)
HSLhsl(262, 63%, 47%)
HSVhsv(262, 77%, 76%)
CMYKcmyk(48.5%, 77.3%, 0%, 23.9%)
CIE-LABlab(34.81, 56.43, -68.54)
CIE-LCHlch(34.81, 88.78, 309.47°)
OKLaboklab(46.36% 0.0837 -0.1967)
OKLCHoklch(46.36% 0.214 293)
XYZxyz(15.8911, 8.4052, 51.8136)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CC2 #8AC22C
analogous
#2C3FC2 #642CC2 #AF2CC2
triadic
#642CC2 #C2642C #2CC264
tetradic
#642CC2 #C22C3F #8AC22C #2CC2AF
square
#642CC2 #C22C3F #8AC22C #2CC2AF
split-complementary
#642CC2 #C2AF2C #3FC22C
monochromatic
#31155E #4A2190 #642CC2 #8553D8 #A885E3

Accessibility & contrast

On white

7.83
#642CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#642CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CC2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CC2#FFFFFF#000000##FFFFFF
##642CC21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#465676
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #642cc2;
/* rgb */ color: rgb(100, 44, 194);
/* oklch */ color: oklch(46.4% 0.214 293.0);
Tailwind
colors: {
  custom: {
    50: '#996cd6',
    500: '#642cc2',
    950: '#000000',
  },
}
SCSS
$custom: #642cc2;
$custom-light: #996cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#642cc2",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 262.4,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46364,
    "c": 0.21377,
    "h": 293
  },
  "luminance": 0.08406
}

Semantic roles & 50–950 ramp

primary
#642CC2
secondary
#AFCD7D
accent
#E642A9
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #642CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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