#6642AD#6642AD

#6642AD is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.163 H 295.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6642AD
RGBrgb(102, 66, 173)
HSLhsl(260, 45%, 47%)
HSVhsv(260, 62%, 68%)
CMYKcmyk(41%, 61.8%, 0%, 32.2%)
CIE-LABlab(37.37, 39.98, -51.96)
CIE-LCHlch(37.37, 65.56, 307.57°)
OKLaboklab(47.71% 0.0689 -0.148)
OKLCHoklch(47.71% 0.163 295)
XYZxyz(14.9685, 9.7380, 40.6180)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642AD #89AD42
analogous
#4254AD #6642AD #9C42AD
triadic
#6642AD #AD6642 #42AD66
tetradic
#6642AD #AD4254 #89AD42 #42AD9C
square
#6642AD #AD4254 #89AD42 #42AD9C
split-complementary
#6642AD #AD9C42 #54AD42
monochromatic
#322054 #4C3181 #6642AD #8767C5 #AA93D6

Accessibility & contrast

On white

7.12
#6642AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6642AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6642AD
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642AD#FFFFFF#000000##FFFFFF
##6642AD1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#0156AB
Tritanopia (blue-blind)
#545A71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6642ad;
/* rgb */ color: rgb(102, 66, 173);
/* oklch */ color: oklch(47.7% 0.163 295.0);
Tailwind
colors: {
  custom: {
    50: '#9778c6',
    500: '#6642ad',
    950: '#000000',
  },
}
SCSS
$custom: #6642ad;
$custom-light: #9778c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6642ad",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 260.187,
    "s": 44.77,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47714,
    "c": 0.1633,
    "h": 295
  },
  "luminance": 0.09738
}

Semantic roles & 50–950 ramp

primary
#6642AD
secondary
#AFC189
accent
#D453A9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6642AD

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

Preview Lab → · Contrast checker → · Palette generator →

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