#664CD7#664CD7

#664CD7 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.5% C 0.203 H 285.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#664CD7
RGBrgb(102, 76, 215)
HSLhsl(251, 63%, 57%)
HSVhsv(251, 65%, 84%)
CMYKcmyk(52.6%, 64.7%, 0%, 15.7%)
CIE-LABlab(42.61, 46.37, -67.95)
CIE-LCHlch(42.61, 82.26, 304.31°)
OKLaboklab(52.5% 0.0547 -0.195)
OKLCHoklch(52.5% 0.203 285.7)
XYZxyz(20.3260, 12.8989, 65.6955)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CD7 #BDD74C
analogous
#4C78D7 #664CD7 #AC4CD7
triadic
#664CD7 #D7664C #4CD766
tetradic
#664CD7 #D74C78 #BDD74C #4CD7AC
square
#664CD7 #D74C78 #BDD74C #4CD7AC
split-complementary
#664CD7 #D7AC4C #78D74C
monochromatic
#331F8A #452ABC #664CD7 #917EE2 #BCB0ED

Accessibility & contrast

On white

5.87
#664CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#664CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CD7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CD7#FFFFFF#000000##FFFFFF
##664CD71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#386E8B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #664cd7;
/* rgb */ color: rgb(102, 76, 215);
/* oklch */ color: oklch(52.5% 0.203 285.7);
Tailwind
colors: {
  custom: {
    50: '#9b80e4',
    500: '#664cd7',
    950: '#000000',
  },
}
SCSS
$custom: #664cd7;
$custom-light: #9b80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#664cd7",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 251.223,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52504,
    "c": 0.20257,
    "h": 285.7
  },
  "luminance": 0.129
}

Semantic roles & 50–950 ramp

primary
#664CD7
secondary
#D1DCA3
accent
#E641C8
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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