#6642BA#6642BA

#6642BA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.179 H 292.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6642BA
RGBrgb(102, 66, 186)
HSLhsl(258, 48%, 49%)
HSVhsv(258, 65%, 73%)
CMYKcmyk(45.2%, 64.5%, 0%, 27.1%)
CIE-LABlab(38.32, 43.61, -58.11)
CIE-LCHlch(38.32, 72.65, 306.89°)
OKLaboklab(48.7% 0.0679 -0.1661)
OKLCHoklch(48.7% 0.179 292.2)
XYZxyz(16.2882, 10.2659, 47.5682)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642BA #96BA42
analogous
#425ABA #6642BA #A242BA
triadic
#6642BA #BA6642 #42BA66
tetradic
#6642BA #BA425A #96BA42 #42BAA2
square
#6642BA #BA425A #96BA42 #42BAA2
split-complementary
#6642BA #BAA242 #5ABA42
monochromatic
#342260 #4D328D #6642BA #8A6ECB #AE9BDB

Accessibility & contrast

On white

6.88
#6642BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6642BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642BA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642BA#FFFFFF#000000##FFFFFF
##6642BA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#4D5E78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6642ba;
/* rgb */ color: rgb(102, 66, 186);
/* oklch */ color: oklch(48.7% 0.179 292.2);
Tailwind
colors: {
  custom: {
    50: '#9878d0',
    500: '#6642ba',
    950: '#000000',
  },
}
SCSS
$custom: #6642ba;
$custom-light: #9878d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6642ba",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 258,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48701,
    "c": 0.17946,
    "h": 292.2
  },
  "luminance": 0.10266
}

Semantic roles & 50–950 ramp

primary
#6642BA
secondary
#B7C890
accent
#D751AF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6642BA

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

Preview Lab → · Contrast checker → · Palette generator →

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