#6642D2#6642D2

#6642D2 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.6% C 0.208 H 288.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#6642D2
RGBrgb(102, 66, 210)
HSLhsl(255, 62%, 54%)
HSVhsv(255, 69%, 82%)
CMYKcmyk(51.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(40.20, 50.39, -69.00)
CIE-LCHlch(40.20, 85.45, 306.14°)
OKLaboklab(50.65% 0.0646 -0.1981)
OKLCHoklch(50.65% 0.208 288.1)
XYZxyz(19.0572, 11.3735, 62.1514)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642D2 #AED242
analogous
#4266D2 #6642D2 #AE42D2
triadic
#6642D2 #D26642 #42D266
tetradic
#6642D2 #D24266 #AED242 #42D2AE
square
#6642D2 #D24266 #AED242 #42D2AE
split-complementary
#6642D2 #D2AE42 #66D242
monochromatic
#351E7C #4A29AD #6642D2 #8E73DE #B6A5EA

Accessibility & contrast

On white

6.41
#6642D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6642D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642D2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642D2#FFFFFF#000000##FFFFFF
##6642D21.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005BCF
Tritanopia (blue-blind)
#3E6785
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6642d2;
/* rgb */ color: rgb(102, 66, 210);
/* oklch */ color: oklch(50.6% 0.208 288.1);
Tailwind
colors: {
  custom: {
    50: '#9b79e1',
    500: '#6642d2',
    950: '#000000',
  },
}
SCSS
$custom: #6642d2;
$custom-light: #9b79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6642d2",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 255,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50647,
    "c": 0.2084,
    "h": 288.1
  },
  "luminance": 0.11374
}

Semantic roles & 50–950 ramp

primary
#6642D2
secondary
#C7D799
accent
#E543BC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6642D2

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

Preview Lab → · Contrast checker → · Palette generator →

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