#6648CC#6648CC

#6648CC is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.0% C 0.194 H 287.9°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6648CC
RGBrgb(102, 72, 204)
HSLhsl(254, 56%, 54%)
HSVhsv(254, 65%, 80%)
CMYKcmyk(50%, 64.7%, 0%, 20%)
CIE-LABlab(40.93, 45.40, -64.36)
CIE-LCHlch(40.93, 78.76, 305.20°)
OKLaboklab(51.02% 0.0598 -0.1845)
OKLCHoklch(51.02% 0.194 287.9)
XYZxyz(18.6928, 11.8183, 58.4112)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6648CC #AECC48
analogous
#486CCC #6648CC #A848CC
triadic
#6648CC #CC6648 #48CC66
tetradic
#6648CC #CC486C #AECC48 #48CCA8
square
#6648CC #CC486C #AECC48 #48CCA8
split-complementary
#6648CC #CCA848 #6CCC48
monochromatic
#352178 #4A2FA8 #6648CC #8E78D9 #B6A8E7

Accessibility & contrast

On white

6.24
#6648CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6648CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6648CC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6648CC#FFFFFF#000000##FFFFFF
##6648CC1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#426884
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6648cc;
/* rgb */ color: rgb(102, 72, 204);
/* oklch */ color: oklch(51.0% 0.194 287.9);
Tailwind
colors: {
  custom: {
    50: '#9a7ddc',
    500: '#6648cc',
    950: '#000000',
  },
}
SCSS
$custom: #6648cc;
$custom-light: #9a7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#6648cc",
  "rgb": {
    "r": 102,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 253.636,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51019,
    "c": 0.19395,
    "h": 287.9
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

primary
#6648CC
secondary
#C7D49C
accent
#E048BD
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #6648CC

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

Preview Lab → · Contrast checker → · Palette generator →

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