#664DC7#664DC7

#664DC7 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.4% C 0.181 H 287.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#664DC7
RGBrgb(102, 77, 199)
HSLhsl(252, 52%, 54%)
HSVhsv(252, 61%, 78%)
CMYKcmyk(48.7%, 61.3%, 0%, 22%)
CIE-LABlab(41.62, 41.09, -60.34)
CIE-LCHlch(41.62, 73.00, 304.26°)
OKLaboklab(51.41% 0.0551 -0.1727)
OKLCHoklch(51.41% 0.181 287.7)
XYZxyz(18.4392, 12.2552, 55.4157)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664DC7 #AEC74D
analogous
#4D71C7 #664DC7 #A34DC7
triadic
#664DC7 #C7664D #4DC766
tetradic
#664DC7 #C74D71 #AEC74D #4DC7A3
square
#664DC7 #C74D71 #AEC74D #4DC7A3
split-complementary
#664DC7 #C7A34D #71C74D
monochromatic
#352575 #4A33A3 #664DC7 #8E7CD6 #B6AAE4

Accessibility & contrast

On white

6.08
#664DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#664DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664DC7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664DC7#FFFFFF#000000##FFFFFF
##664DC71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#456A83
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #664dc7;
/* rgb */ color: rgb(102, 77, 199);
/* oklch */ color: oklch(51.4% 0.181 287.7);
Tailwind
colors: {
  custom: {
    50: '#9980d9',
    500: '#664dc7',
    950: '#000000',
  },
}
SCSS
$custom: #664dc7;
$custom-light: #9980d9;
$custom-dark: #000000;
JSON
{
  "hex": "#664dc7",
  "rgb": {
    "r": 102,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 252.295,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51405,
    "c": 0.18125,
    "h": 287.7
  },
  "luminance": 0.12256
}

Semantic roles & 50–950 ramp

primary
#664DC7
secondary
#C7D29E
accent
#DC4CBE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #664DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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