#664AA4#664AA4

#664AA4 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.4% C 0.140 H 295.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#664AA4
RGBrgb(102, 74, 164)
HSLhsl(259, 38%, 47%)
HSVhsv(259, 55%, 64%)
CMYKcmyk(37.8%, 54.9%, 0%, 35.7%)
CIE-LABlab(38.56, 32.79, -44.69)
CIE-LCHlch(38.56, 55.43, 306.27°)
OKLaboklab(48.39% 0.0591 -0.1267)
OKLCHoklch(48.39% 0.14 295)
XYZxyz(14.6274, 10.4024, 36.3520)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664AA4 #88A44A
analogous
#4A5BA4 #664AA4 #934AA4
triadic
#664AA4 #A4664A #4AA466
tetradic
#664AA4 #A44A5B #88A44A #4AA493
square
#664AA4 #A44A5B #88A44A #4AA493
split-complementary
#664AA4 #A4934A #5BA44A
monochromatic
#322450 #4C377A #664AA4 #876EBD #AA98D0

Accessibility & contrast

On white

6.82
#664AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#664AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664AA4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664AA4#FFFFFF#000000##FFFFFF
##664AA41.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225CA7
Deuteranopia (green-blind)
#2A59A2
Tritanopia (blue-blind)
#575C70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #664aa4;
/* rgb */ color: rgb(102, 74, 164);
/* oklch */ color: oklch(48.4% 0.140 295.0);
Tailwind
colors: {
  custom: {
    50: '#957dbf',
    500: '#664aa4',
    950: '#000000',
  },
}
SCSS
$custom: #664aa4;
$custom-light: #957dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#664aa4",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 258.667,
    "s": 37.815,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48393,
    "c": 0.13977,
    "h": 295
  },
  "luminance": 0.10403
}

Semantic roles & 50–950 ramp

primary
#664AA4
secondary
#AEBD8D
accent
#CE5AAA
background
#F9F7FB
surface
#F2EEF7
border
#CCC9D0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #664AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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