#6642DB#6642DB

#6642DB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.219 H 286.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6642DB
RGBrgb(102, 66, 219)
HSLhsl(254, 68%, 56%)
HSVhsv(254, 70%, 86%)
CMYKcmyk(53.4%, 69.9%, 0%, 14.1%)
CIE-LABlab(40.95, 52.95, -72.95)
CIE-LCHlch(40.95, 90.14, 305.97°)
OKLaboklab(51.41% 0.063 -0.2097)
OKLCHoklch(51.41% 0.219 286.7)
XYZxyz(20.2101, 11.8346, 68.2235)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642DB #B7DB42
analogous
#426ADB #6642DB #B342DB
triadic
#6642DB #DB6642 #42DB66
tetradic
#6642DB #DB426A #B7DB42 #42DBB3
square
#6642DB #DB426A #B7DB42 #42DBB3
split-complementary
#6642DB #DBB342 #6ADB42
monochromatic
#341A89 #4824BC #6642DB #9075E5 #B9A9EF

Accessibility & contrast

On white

6.24
#6642DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6642DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642DB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642DB#FFFFFF#000000##FFFFFF
##6642DB1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#356A8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6642db;
/* rgb */ color: rgb(102, 66, 219);
/* oklch */ color: oklch(51.4% 0.219 286.7);
Tailwind
colors: {
  custom: {
    50: '#9c79e7',
    500: '#6642db',
    950: '#000000',
  },
}
SCSS
$custom: #6642db;
$custom-light: #9c79e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6642db",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 254.118,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51413,
    "c": 0.21896,
    "h": 286.7
  },
  "luminance": 0.11836
}

Semantic roles & 50–950 ramp

primary
#6642DB
secondary
#CDDC9D
accent
#EB3DC2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6642DB

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

Preview Lab → · Contrast checker → · Palette generator →

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