#664AA2#664AA2

#664AA2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.3% C 0.137 H 295.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#664AA2
RGBrgb(102, 74, 162)
HSLhsl(259, 37%, 46%)
HSVhsv(259, 54%, 64%)
CMYKcmyk(37%, 54.3%, 0%, 36.5%)
CIE-LABlab(38.43, 32.24, -43.69)
CIE-LCHlch(38.43, 54.30, 306.42°)
OKLaboklab(48.26% 0.059 -0.1237)
OKLCHoklch(48.26% 0.137 295.5)
XYZxyz(14.4482, 10.3307, 35.4082)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664AA2 #86A24A
analogous
#4A5AA2 #664AA2 #924AA2
triadic
#664AA2 #A2664A #4AA266
tetradic
#664AA2 #A24A5A #86A24A #4AA292
square
#664AA2 #A24A5A #86A24A #4AA292
split-complementary
#664AA2 #A2924A #5AA24A
monochromatic
#31244E #4C3778 #664AA2 #866DBC #A997CF

Accessibility & contrast

On white

6.85
#664AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#664AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664AA2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664AA2#FFFFFF#000000##FFFFFF
##664AA21.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#2C59A0
Tritanopia (blue-blind)
#585C6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #664aa2;
/* rgb */ color: rgb(102, 74, 162);
/* oklch */ color: oklch(48.3% 0.137 295.5);
Tailwind
colors: {
  custom: {
    50: '#957dbe',
    500: '#664aa2',
    950: '#000000',
  },
}
SCSS
$custom: #664aa2;
$custom-light: #957dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#664aa2",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 259.091,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4826,
    "c": 0.13709,
    "h": 295.5
  },
  "luminance": 0.10331
}

Semantic roles & 50–950 ramp

primary
#664AA2
secondary
#ADBC8C
accent
#CD5BA9
background
#F9F7FB
surface
#F2EEF7
border
#CCC9D0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #664AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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