#6642BE#6642BE

#6642BE is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.184 H 291.5°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6642BE
RGBrgb(102, 66, 190)
HSLhsl(257, 49%, 50%)
HSVhsv(257, 65%, 75%)
CMYKcmyk(46.3%, 65.3%, 0%, 25.5%)
CIE-LABlab(38.62, 44.73, -59.97)
CIE-LCHlch(38.62, 74.81, 306.72°)
OKLaboklab(49.01% 0.0674 -0.1716)
OKLCHoklch(49.01% 0.184 291.5)
XYZxyz(16.7194, 10.4383, 49.8391)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642BE #9ABE42
analogous
#425CBE #6642BE #A442BE
triadic
#6642BE #BE6642 #42BE66
tetradic
#6642BE #BE425C #9ABE42 #42BEA4
square
#6642BE #BE425C #9ABE42 #42BEA4
split-complementary
#6642BE #BEA442 #5CBE42
monochromatic
#352263 #4D3291 #6642BE #8B70CE #B09DDD

Accessibility & contrast

On white

6.80
#6642BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6642BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642BE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642BE#FFFFFF#000000##FFFFFF
##6642BE1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#4B607A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6642be;
/* rgb */ color: rgb(102, 66, 190);
/* oklch */ color: oklch(49.0% 0.184 291.5);
Tailwind
colors: {
  custom: {
    50: '#9978d2',
    500: '#6642be',
    950: '#000000',
  },
}
SCSS
$custom: #6642be;
$custom-light: #9978d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6642be",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 257.419,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49014,
    "c": 0.18436,
    "h": 291.5
  },
  "luminance": 0.10439
}

Semantic roles & 50–950 ramp

primary
#6642BE
secondary
#BACA92
accent
#D84FB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6642BE

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

Preview Lab → · Contrast checker → · Palette generator →

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