#6647CC#6647CC

#6647CC is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.195 H 288.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6647CC
RGBrgb(102, 71, 204)
HSLhsl(254, 57%, 54%)
HSVhsv(254, 65%, 80%)
CMYKcmyk(50%, 65.2%, 0%, 20%)
CIE-LABlab(40.72, 45.96, -64.70)
CIE-LCHlch(40.72, 79.36, 305.39°)
OKLaboklab(50.87% 0.0607 -0.1855)
OKLCHoklch(50.87% 0.195 288.1)
XYZxyz(18.6286, 11.6900, 58.3899)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6647CC #ADCC47
analogous
#476BCC #6647CC #A947CC
triadic
#6647CC #CC6647 #47CC66
tetradic
#6647CC #CC476B #ADCC47 #47CCA9
square
#6647CC #CC476B #ADCC47 #47CCA9
split-complementary
#6647CC #CCA947 #6BCC47
monochromatic
#352177 #4B2EA7 #6647CC #8E77D9 #B6A7E7

Accessibility & contrast

On white

6.29
#6647CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6647CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6647CC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6647CC#FFFFFF#000000##FFFFFF
##6647CC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6647cc;
/* rgb */ color: rgb(102, 71, 204);
/* oklch */ color: oklch(50.9% 0.195 288.1);
Tailwind
colors: {
  custom: {
    50: '#9a7cdc',
    500: '#6647cc',
    950: '#000000',
  },
}
SCSS
$custom: #6647cc;
$custom-light: #9a7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6647cc",
  "rgb": {
    "r": 102,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 253.985,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50869,
    "c": 0.19519,
    "h": 288.1
  },
  "luminance": 0.11691
}

Semantic roles & 50–950 ramp

primary
#6647CC
secondary
#C7D49B
accent
#E048BC
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #6647CC

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

Preview Lab → · Contrast checker → · Palette generator →

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