#6642CB#6642CB

#6642CB is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.200 H 289.2°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#6642CB
RGBrgb(102, 66, 203)
HSLhsl(256, 57%, 53%)
HSVhsv(256, 67%, 80%)
CMYKcmyk(49.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(39.63, 48.41, -65.89)
CIE-LCHlch(39.63, 81.76, 306.31°)
OKLaboklab(50.06% 0.0657 -0.189)
OKLCHoklch(50.06% 0.2 289.2)
XYZxyz(18.2041, 11.0322, 57.6586)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642CB #A7CB42
analogous
#4263CB #6642CB #AA42CB
triadic
#6642CB #CB6642 #42CB66
tetradic
#6642CB #CB4263 #A7CB42 #42CBAA
square
#6642CB #CB4263 #A7CB42 #42CBAA
split-complementary
#6642CB #CBAA42 #63CB42
monochromatic
#362073 #4C2DA3 #6642CB #8D72D8 #B4A2E5

Accessibility & contrast

On white

6.55
#6642CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6642CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642CB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642CB#FFFFFF#000000##FFFFFF
##6642CB1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#436481
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6642cb;
/* rgb */ color: rgb(102, 66, 203);
/* oklch */ color: oklch(50.1% 0.200 289.2);
Tailwind
colors: {
  custom: {
    50: '#9a79dc',
    500: '#6642cb',
    950: '#000000',
  },
}
SCSS
$custom: #6642cb;
$custom-light: #9a79dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6642cb",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 255.766,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50064,
    "c": 0.20007,
    "h": 289.2
  },
  "luminance": 0.11033
}

Semantic roles & 50–950 ramp

primary
#6642CB
secondary
#C2D297
accent
#E048B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6642CB

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

Preview Lab → · Contrast checker → · Palette generator →

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