#6642BF#6642BF

#6642BF is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.186 H 291.3°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6642BF
RGBrgb(102, 66, 191)
HSLhsl(257, 49%, 50%)
HSVhsv(257, 65%, 75%)
CMYKcmyk(46.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(38.69, 45.01, -60.43)
CIE-LCHlch(38.69, 75.35, 306.68°)
OKLaboklab(49.09% 0.0673 -0.1729)
OKLCHoklch(49.09% 0.186 291.3)
XYZxyz(16.8290, 10.4822, 50.4167)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642BF #9BBF42
analogous
#425CBF #6642BF #A442BF
triadic
#6642BF #BF6642 #42BF66
tetradic
#6642BF #BF425C #9BBF42 #42BFA4
square
#6642BF #BF425C #9BBF42 #42BFA4
split-complementary
#6642BF #BFA442 #5CBF42
monochromatic
#352265 #4D3292 #6642BF #8B70CE #B09DDE

Accessibility & contrast

On white

6.78
#6642BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6642BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642BF
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642BF#FFFFFF#000000##FFFFFF
##6642BF1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#4B607B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6642bf;
/* rgb */ color: rgb(102, 66, 191);
/* oklch */ color: oklch(49.1% 0.186 291.3);
Tailwind
colors: {
  custom: {
    50: '#9978d3',
    500: '#6642bf',
    950: '#000000',
  },
}
SCSS
$custom: #6642bf;
$custom-light: #9978d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6642bf",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 257.28,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49093,
    "c": 0.18559,
    "h": 291.3
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#6642BF
secondary
#BACA93
accent
#D94FB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6642BF

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

Preview Lab → · Contrast checker → · Palette generator →

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