#6642CF#6642CF

#6642CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.205 H 288.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#6642CF
RGBrgb(102, 66, 207)
HSLhsl(255, 59%, 54%)
HSVhsv(255, 68%, 81%)
CMYKcmyk(50.7%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.96, 49.54, -67.67)
CIE-LCHlch(39.96, 83.87, 306.21°)
OKLaboklab(50.4% 0.0651 -0.1942)
OKLCHoklch(50.4% 0.205 288.5)
XYZxyz(18.6869, 11.2254, 60.2015)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642CF #ABCF42
analogous
#4264CF #6642CF #AC42CF
triadic
#6642CF #CF6642 #42CF66
tetradic
#6642CF #CF4264 #ABCF42 #42CFAC
square
#6642CF #CF4264 #ABCF42 #42CFAC
split-complementary
#6642CF #CFAC42 #64CF42
monochromatic
#351F78 #4B2BA9 #6642CF #8E73DB #B5A4E8

Accessibility & contrast

On white

6.47
#6642CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6642CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642CF
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642CF#FFFFFF#000000##FFFFFF
##6642CF1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#406683
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6642cf;
/* rgb */ color: rgb(102, 66, 207);
/* oklch */ color: oklch(50.4% 0.205 288.5);
Tailwind
colors: {
  custom: {
    50: '#9b79df',
    500: '#6642cf',
    950: '#000000',
  },
}
SCSS
$custom: #6642cf;
$custom-light: #9b79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6642cf",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 255.319,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50395,
    "c": 0.20485,
    "h": 288.5
  },
  "luminance": 0.11226
}

Semantic roles & 50–950 ramp

primary
#6642CF
secondary
#C5D598
accent
#E345BA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6642CF

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

Preview Lab → · Contrast checker → · Palette generator →

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