#6642CE#6642CE

#6642CE is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.3% C 0.204 H 288.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6642CE
RGBrgb(102, 66, 206)
HSLhsl(255, 59%, 53%)
HSVhsv(255, 68%, 81%)
CMYKcmyk(50.5%, 68%, 0%, 19.2%)
CIE-LABlab(39.88, 49.26, -67.23)
CIE-LCHlch(39.88, 83.34, 306.23°)
OKLaboklab(50.31% 0.0652 -0.1929)
OKLCHoklch(50.31% 0.204 288.7)
XYZxyz(18.5650, 11.1766, 59.5596)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642CE #AACE42
analogous
#4264CE #6642CE #AC42CE
triadic
#6642CE #CE6642 #42CE66
tetradic
#6642CE #CE4264 #AACE42 #42CEAC
square
#6642CE #CE4264 #AACE42 #42CEAC
split-complementary
#6642CE #CEAC42 #64CE42
monochromatic
#351F77 #4B2BA7 #6642CE #8D73DB #B5A3E7

Accessibility & contrast

On white

6.49
#6642CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6642CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642CE
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642CE#FFFFFF#000000##FFFFFF
##6642CE1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#416583
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6642ce;
/* rgb */ color: rgb(102, 66, 206);
/* oklch */ color: oklch(50.3% 0.204 288.7);
Tailwind
colors: {
  custom: {
    50: '#9b79de',
    500: '#6642ce',
    950: '#000000',
  },
}
SCSS
$custom: #6642ce;
$custom-light: #9b79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6642ce",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 255.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50312,
    "c": 0.20366,
    "h": 288.7
  },
  "luminance": 0.11177
}

Semantic roles & 50–950 ramp

primary
#6642CE
secondary
#C5D498
accent
#E246BA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6642CE

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

Preview Lab → · Contrast checker → · Palette generator →

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