#6642BB#6642BB

#6642BB is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.181 H 292.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#6642BB
RGBrgb(102, 66, 187)
HSLhsl(258, 48%, 50%)
HSVhsv(258, 65%, 73%)
CMYKcmyk(45.5%, 64.7%, 0%, 26.7%)
CIE-LABlab(38.39, 43.89, -58.58)
CIE-LCHlch(38.39, 73.19, 306.84°)
OKLaboklab(48.78% 0.0678 -0.1675)
OKLCHoklch(48.78% 0.181 292)
XYZxyz(16.3949, 10.3085, 48.1300)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642BB #97BB42
analogous
#425BBB #6642BB #A242BB
triadic
#6642BB #BB6642 #42BB66
tetradic
#6642BB #BB425B #97BB42 #42BBA2
square
#6642BB #BB425B #97BB42 #42BBA2
split-complementary
#6642BB #BBA242 #5BBB42
monochromatic
#352261 #4D328E #6642BB #8A6ECC #AF9CDC

Accessibility & contrast

On white

6.86
#6642BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6642BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642BB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642BB#FFFFFF#000000##FFFFFF
##6642BB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#4D5F78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6642bb;
/* rgb */ color: rgb(102, 66, 187);
/* oklch */ color: oklch(48.8% 0.181 292.0);
Tailwind
colors: {
  custom: {
    50: '#9878d0',
    500: '#6642bb',
    950: '#000000',
  },
}
SCSS
$custom: #6642bb;
$custom-light: #9878d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6642bb",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 257.851,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48779,
    "c": 0.18069,
    "h": 292
  },
  "luminance": 0.10309
}

Semantic roles & 50–950 ramp

primary
#6642BB
secondary
#B8C891
accent
#D750AF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6642BB

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

Preview Lab → · Contrast checker → · Palette generator →

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