#664AAA#664AAA

#664AAA is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.8% C 0.148 H 293.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#664AAA
RGBrgb(102, 74, 170)
HSLhsl(258, 39%, 48%)
HSVhsv(258, 56%, 67%)
CMYKcmyk(40%, 56.5%, 0%, 33.3%)
CIE-LABlab(38.94, 34.48, -47.64)
CIE-LCHlch(38.94, 58.81, 305.89°)
OKLaboklab(48.8% 0.0592 -0.1353)
OKLCHoklch(48.8% 0.148 293.6)
XYZxyz(15.1820, 10.6243, 39.2732)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664AAA #8EAA4A
analogous
#4A5EAA #664AAA #964AAA
triadic
#664AAA #AA664A #4AAA66
tetradic
#664AAA #AA4A5E #8EAA4A #4AAA96
square
#664AAA #AA4A5E #8EAA4A #4AAA96
split-complementary
#664AAA #AA964A #5EAA4A
monochromatic
#332555 #4C377F #664AAA #8870C1 #AB9BD3

Accessibility & contrast

On white

6.72
#664AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#664AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664AAA
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664AAA#FFFFFF#000000##FFFFFF
##664AAA1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAD
Deuteranopia (green-blind)
#225AA8
Tritanopia (blue-blind)
#545E73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #664aaa;
/* rgb */ color: rgb(102, 74, 170);
/* oklch */ color: oklch(48.8% 0.148 293.6);
Tailwind
colors: {
  custom: {
    50: '#967dc4',
    500: '#664aaa',
    950: '#000000',
  },
}
SCSS
$custom: #664aaa;
$custom-light: #967dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#664aaa",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 257.5,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48801,
    "c": 0.14775,
    "h": 293.6
  },
  "luminance": 0.10625
}

Semantic roles & 50–950 ramp

primary
#664AAA
secondary
#B2C090
accent
#CF59AD
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #664AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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