#664CD2#664CD2

#664CD2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.1% C 0.196 H 286.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#664CD2
RGBrgb(102, 76, 210)
HSLhsl(252, 60%, 56%)
HSVhsv(252, 64%, 82%)
CMYKcmyk(51.4%, 63.8%, 0%, 17.6%)
CIE-LABlab(42.22, 44.90, -65.71)
CIE-LCHlch(42.22, 79.58, 304.35°)
OKLaboklab(52.1% 0.0552 -0.1885)
OKLCHoklch(52.1% 0.196 286.3)
XYZxyz(19.6933, 12.6458, 62.3635)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CD2 #B8D24C
analogous
#4C75D2 #664CD2 #A94CD2
triadic
#664CD2 #D2664C #4CD266
tetradic
#664CD2 #D24C75 #B8D24C #4CD2A9
square
#664CD2 #D24C75 #B8D24C #4CD2A9
split-complementary
#664CD2 #D2A94C #75D24C
monochromatic
#342183 #472DB4 #664CD2 #907DDE #BAAEEB

Accessibility & contrast

On white

5.95
#664CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#664CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CD2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CD2#FFFFFF#000000##FFFFFF
##664CD21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#3D6D88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664cd2;
/* rgb */ color: rgb(102, 76, 210);
/* oklch */ color: oklch(52.1% 0.196 286.3);
Tailwind
colors: {
  custom: {
    50: '#9b7fe1',
    500: '#664cd2',
    950: '#000000',
  },
}
SCSS
$custom: #664cd2;
$custom-light: #9b7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#664cd2",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 251.642,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52104,
    "c": 0.19638,
    "h": 286.3
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#664CD2
secondary
#CED9A1
accent
#E345C4
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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