#6642C8#6642C8

#6642C8 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.196 H 289.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6642C8
RGBrgb(102, 66, 200)
HSLhsl(256, 55%, 52%)
HSVhsv(256, 67%, 78%)
CMYKcmyk(49%, 67%, 0%, 21.6%)
CIE-LABlab(39.40, 47.56, -64.53)
CIE-LCHlch(39.40, 80.17, 306.39°)
OKLaboklab(49.82% 0.0661 -0.185)
OKLCHoklch(49.82% 0.196 289.7)
XYZxyz(17.8500, 10.8906, 55.7940)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642C8 #A4C842
analogous
#4261C8 #6642C8 #A942C8
triadic
#6642C8 #C86642 #42C866
tetradic
#6642C8 #C84261 #A4C842 #42C8A9
square
#6642C8 #C84261 #A4C842 #42C8A9
split-complementary
#6642C8 #C8A942 #61C842
monochromatic
#36206F #4C2E9F #6642C8 #8C71D6 #B3A1E4

Accessibility & contrast

On white

6.61
#6642C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6642C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642C8
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642C8#FFFFFF#000000##FFFFFF
##6642C81.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#45637F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6642c8;
/* rgb */ color: rgb(102, 66, 200);
/* oklch */ color: oklch(49.8% 0.196 289.7);
Tailwind
colors: {
  custom: {
    50: '#9a79da',
    500: '#6642c8',
    950: '#000000',
  },
}
SCSS
$custom: #6642c8;
$custom-light: #9a79da;
$custom-dark: #000000;
JSON
{
  "hex": "#6642c8",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 256.119,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49818,
    "c": 0.19649,
    "h": 289.7
  },
  "luminance": 0.10891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6642C8

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

Preview Lab → · Contrast checker → · Palette generator →

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