#6642C7#6642C7

#6642C7 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.195 H 289.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6642C7
RGBrgb(102, 66, 199)
HSLhsl(256, 54%, 52%)
HSVhsv(256, 67%, 78%)
CMYKcmyk(48.7%, 66.8%, 0%, 22%)
CIE-LABlab(39.32, 47.28, -64.08)
CIE-LCHlch(39.32, 79.63, 306.42°)
OKLaboklab(49.74% 0.0663 -0.1837)
OKLCHoklch(49.74% 0.195 289.8)
XYZxyz(17.7336, 10.8440, 55.1805)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642C7 #A3C742
analogous
#4260C7 #6642C7 #A942C7
triadic
#6642C7 #C76642 #42C766
tetradic
#6642C7 #C74260 #A3C742 #42C7A9
square
#6642C7 #C74260 #A3C742 #42C7A9
split-complementary
#6642C7 #C7A942 #60C742
monochromatic
#36216E #4D2F9D #6642C7 #8C71D5 #B2A0E3

Accessibility & contrast

On white

6.63
#6642C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6642C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642C7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642C7#FFFFFF#000000##FFFFFF
##6642C71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#46637F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6642c7;
/* rgb */ color: rgb(102, 66, 199);
/* oklch */ color: oklch(49.7% 0.195 289.8);
Tailwind
colors: {
  custom: {
    50: '#9a79d9',
    500: '#6642c7',
    950: '#000000',
  },
}
SCSS
$custom: #6642c7;
$custom-light: #9a79d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6642c7",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 256.241,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49736,
    "c": 0.19528,
    "h": 289.8
  },
  "luminance": 0.10845
}

Semantic roles & 50–950 ramp

primary
#6642C7
secondary
#C0D095
accent
#DE4AB6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6642C7

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

Preview Lab → · Contrast checker → · Palette generator →

#6642C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva