#6642CA#6642CA

#6642CA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.199 H 289.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#6642CA
RGBrgb(102, 66, 202)
HSLhsl(256, 56%, 53%)
HSVhsv(256, 67%, 79%)
CMYKcmyk(49.5%, 67.3%, 0%, 20.8%)
CIE-LABlab(39.55, 48.12, -65.44)
CIE-LCHlch(39.55, 81.23, 306.33°)
OKLaboklab(49.98% 0.0659 -0.1877)
OKLCHoklch(49.98% 0.199 289.3)
XYZxyz(18.0853, 10.9847, 57.0330)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642CA #A6CA42
analogous
#4262CA #6642CA #AA42CA
triadic
#6642CA #CA6642 #42CA66
tetradic
#6642CA #CA4262 #A6CA42 #42CAAA
square
#6642CA #CA4262 #A6CA42 #42CAAA
split-complementary
#6642CA #CAAA42 #62CA42
monochromatic
#362072 #4C2DA2 #6642CA #8D72D7 #B3A2E5

Accessibility & contrast

On white

6.57
#6642CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6642CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642CA
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642CA#FFFFFF#000000##FFFFFF
##6642CA1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#446481
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6642ca;
/* rgb */ color: rgb(102, 66, 202);
/* oklch */ color: oklch(50.0% 0.199 289.3);
Tailwind
colors: {
  custom: {
    50: '#9a79db',
    500: '#6642ca',
    950: '#000000',
  },
}
SCSS
$custom: #6642ca;
$custom-light: #9a79db;
$custom-dark: #000000;
JSON
{
  "hex": "#6642ca",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 255.882,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49981,
    "c": 0.19888,
    "h": 289.3
  },
  "luminance": 0.10985
}

Semantic roles & 50–950 ramp

primary
#6642CA
secondary
#C2D196
accent
#DF48B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6642CA

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

Preview Lab → · Contrast checker → · Palette generator →

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