#664CCC#664CCC

#664CCC is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.189 H 287.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#664CCC
RGBrgb(102, 76, 204)
HSLhsl(252, 56%, 55%)
HSVhsv(252, 63%, 80%)
CMYKcmyk(50%, 62.7%, 0%, 20%)
CIE-LABlab(41.77, 43.14, -62.99)
CIE-LCHlch(41.77, 76.34, 304.40°)
OKLaboklab(51.63% 0.0557 -0.1805)
OKLCHoklch(51.63% 0.189 287.2)
XYZxyz(18.9598, 12.3524, 58.5003)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CCC #B2CC4C
analogous
#4C72CC #664CCC #A64CCC
triadic
#664CCC #CC664C #4CCC66
tetradic
#664CCC #CC4C72 #B2CC4C #4CCCA6
square
#664CCC #CC4C72 #B2CC4C #4CCCA6
split-complementary
#664CCC #CCA64C #72CC4C
monochromatic
#35237B #4931AA #664CCC #8F7CDA #B7ABE7

Accessibility & contrast

On white

6.05
#664CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#664CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CCC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CCC#FFFFFF#000000##FFFFFF
##664CCC1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#416B85
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #664ccc;
/* rgb */ color: rgb(102, 76, 204);
/* oklch */ color: oklch(51.6% 0.189 287.2);
Tailwind
colors: {
  custom: {
    50: '#9a7fdc',
    500: '#664ccc',
    950: '#000000',
  },
}
SCSS
$custom: #664ccc;
$custom-light: #9a7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#664ccc",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 252.188,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51632,
    "c": 0.18888,
    "h": 287.2
  },
  "luminance": 0.12353
}

Semantic roles & 50–950 ramp

primary
#664CCC
secondary
#CAD59F
accent
#DF49C0
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664CCC

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

Preview Lab → · Contrast checker → · Palette generator →

#664CCC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva