#664ACC#664ACC

#664ACC is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.3% C 0.191 H 287.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#664ACC
RGBrgb(102, 74, 204)
HSLhsl(253, 56%, 55%)
HSVhsv(253, 64%, 80%)
CMYKcmyk(50%, 63.7%, 0%, 20%)
CIE-LABlab(41.34, 44.27, -63.68)
CIE-LCHlch(41.34, 77.56, 304.81°)
OKLaboklab(51.32% 0.0578 -0.1825)
OKLCHoklch(51.32% 0.191 287.6)
XYZxyz(18.8242, 12.0811, 58.4551)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664ACC #B0CC4A
analogous
#4A6FCC #664ACC #A74ACC
triadic
#664ACC #CC664A #4ACC66
tetradic
#664ACC #CC4A6F #B0CC4A #4ACCA7
square
#664ACC #CC4A6F #B0CC4A #4ACCA7
split-complementary
#664ACC #CCA74A #6FCC4A
monochromatic
#352279 #4A30A9 #664ACC #8E7AD9 #B7A9E7

Accessibility & contrast

On white

6.15
#664ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#664ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664ACC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664ACC#FFFFFF#000000##FFFFFF
##664ACC1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#416984
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #664acc;
/* rgb */ color: rgb(102, 74, 204);
/* oklch */ color: oklch(51.3% 0.191 287.6);
Tailwind
colors: {
  custom: {
    50: '#9a7edc',
    500: '#664acc',
    950: '#000000',
  },
}
SCSS
$custom: #664acc;
$custom-light: #9a7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#664acc",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 252.923,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51322,
    "c": 0.19143,
    "h": 287.6
  },
  "luminance": 0.12082
}

Semantic roles & 50–950 ramp

primary
#664ACC
secondary
#C9D49D
accent
#DF48BF
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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