#6642CC#6642CC

#6642CC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.1% C 0.201 H 289.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6642CC
RGBrgb(102, 66, 204)
HSLhsl(256, 58%, 53%)
HSVhsv(256, 68%, 80%)
CMYKcmyk(50%, 67.6%, 0%, 20%)
CIE-LABlab(39.71, 48.69, -66.33)
CIE-LCHlch(39.71, 82.29, 306.28°)
OKLaboklab(50.15% 0.0655 -0.1903)
OKLCHoklch(50.15% 0.201 289)
XYZxyz(18.3236, 11.0800, 58.2882)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642CC #A8CC42
analogous
#4263CC #6642CC #AB42CC
triadic
#6642CC #CC6642 #42CC66
tetradic
#6642CC #CC4263 #A8CC42 #42CCAB
square
#6642CC #CC4263 #A8CC42 #42CCAB
split-complementary
#6642CC #CCAB42 #63CC42
monochromatic
#361F74 #4C2CA4 #6642CC #8D72D9 #B4A2E6

Accessibility & contrast

On white

6.53
#6642CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6642CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642CC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642CC#FFFFFF#000000##FFFFFF
##6642CC1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#426582
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6642cc;
/* rgb */ color: rgb(102, 66, 204);
/* oklch */ color: oklch(50.1% 0.201 289.0);
Tailwind
colors: {
  custom: {
    50: '#9a79dd',
    500: '#6642cc',
    950: '#000000',
  },
}
SCSS
$custom: #6642cc;
$custom-light: #9a79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6642cc",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 255.652,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50146,
    "c": 0.20127,
    "h": 289
  },
  "luminance": 0.11081
}

Semantic roles & 50–950 ramp

primary
#6642CC
secondary
#C3D397
accent
#E147B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6642CC

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

Preview Lab → · Contrast checker → · Palette generator →

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