#6642D5#6642D5

#6642D5 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.212 H 287.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6642D5
RGBrgb(102, 66, 213)
HSLhsl(255, 64%, 55%)
HSVhsv(255, 69%, 84%)
CMYKcmyk(52.1%, 69%, 0%, 16.5%)
CIE-LABlab(40.45, 51.25, -70.33)
CIE-LCHlch(40.45, 87.02, 306.08°)
OKLaboklab(50.9% 0.0641 -0.202)
OKLCHoklch(50.9% 0.212 287.6)
XYZxyz(19.4344, 11.5244, 64.1383)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642D5 #B1D542
analogous
#4268D5 #6642D5 #B042D5
triadic
#6642D5 #D56642 #42D566
tetradic
#6642D5 #D54268 #B1D542 #42D5B0
square
#6642D5 #D54268 #B1D542 #42D5B0
split-complementary
#6642D5 #D5B042 #68D542
monochromatic
#351C80 #4A28B2 #6642D5 #8F74E0 #B7A6EB

Accessibility & contrast

On white

6.35
#6642D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6642D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642D5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642D5#FFFFFF#000000##FFFFFF
##6642D51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#005BD2
Tritanopia (blue-blind)
#3B6887
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6642d5;
/* rgb */ color: rgb(102, 66, 213);
/* oklch */ color: oklch(50.9% 0.212 287.6);
Tailwind
colors: {
  custom: {
    50: '#9c79e3',
    500: '#6642d5',
    950: '#000000',
  },
}
SCSS
$custom: #6642d5;
$custom-light: #9c79e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6642d5",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 254.694,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.509,
    "c": 0.21195,
    "h": 287.6
  },
  "luminance": 0.11525
}

Semantic roles & 50–950 ramp

primary
#6642D5
secondary
#C9D89A
accent
#E741BE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6642D5

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

Preview Lab → · Contrast checker → · Palette generator →

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