#664FA2#664FA2

#664FA2 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.1% C 0.129 H 293.9°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#664FA2
RGBrgb(102, 79, 162)
HSLhsl(257, 34%, 47%)
HSVhsv(257, 51%, 64%)
CMYKcmyk(37%, 51.2%, 0%, 36.5%)
CIE-LABlab(39.62, 29.21, -41.78)
CIE-LCHlch(39.62, 50.98, 304.96°)
OKLaboklab(49.15% 0.0523 -0.1181)
OKLCHoklch(49.15% 0.129 293.9)
XYZxyz(14.7954, 11.0251, 35.5239)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FA2 #8BA24F
analogous
#4F61A2 #664FA2 #904FA2
triadic
#664FA2 #A2664F #4FA266
tetradic
#664FA2 #A24F61 #8BA24F #4FA290
square
#664FA2 #A24F61 #8BA24F #4FA290
split-complementary
#664FA2 #A2904F #61A24F
monochromatic
#322750 #4C3B79 #664FA2 #8773BB #AA9CCF

Accessibility & contrast

On white

6.55
#664FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#664FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FA2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FA2#FFFFFF#000000##FFFFFF
##664FA21.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#345CA0
Tritanopia (blue-blind)
#575F71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #664fa2;
/* rgb */ color: rgb(102, 79, 162);
/* oklch */ color: oklch(49.1% 0.129 293.9);
Tailwind
colors: {
  custom: {
    50: '#9581be',
    500: '#664fa2',
    950: '#000000',
  },
}
SCSS
$custom: #664fa2;
$custom-light: #9581be;
$custom-dark: #000000;
JSON
{
  "hex": "#664fa2",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 256.627,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49147,
    "c": 0.12922,
    "h": 293.9
  },
  "luminance": 0.11025
}

Semantic roles & 50–950 ramp

primary
#664FA2
secondary
#B0BC91
accent
#CB5DAC
background
#F9F7FB
surface
#F2EEF7
border
#CCC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #664FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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