#664BD2#664BD2

#664BD2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.0% C 0.198 H 286.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#664BD2
RGBrgb(102, 75, 210)
HSLhsl(252, 60%, 56%)
HSVhsv(252, 64%, 82%)
CMYKcmyk(51.4%, 64.3%, 0%, 17.6%)
CIE-LABlab(42.01, 45.46, -66.05)
CIE-LCHlch(42.01, 80.18, 304.54°)
OKLaboklab(51.95% 0.0562 -0.1895)
OKLCHoklch(51.95% 0.198 286.5)
XYZxyz(19.6250, 12.5091, 62.3407)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BD2 #B7D24B
analogous
#4B73D2 #664BD2 #A94BD2
triadic
#664BD2 #D2664B #4BD266
tetradic
#664BD2 #D24B73 #B7D24B #4BD2A9
square
#664BD2 #D24B73 #B7D24B #4BD2A9
split-complementary
#664BD2 #D2A94B #73D24B
monochromatic
#342182 #482DB3 #664BD2 #907CDE #B9ADEA

Accessibility & contrast

On white

6.00
#664BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#664BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BD2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BD2#FFFFFF#000000##FFFFFF
##664BD21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#3D6C88
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #664bd2;
/* rgb */ color: rgb(102, 75, 210);
/* oklch */ color: oklch(52.0% 0.198 286.5);
Tailwind
colors: {
  custom: {
    50: '#9b7fe1',
    500: '#664bd2',
    950: '#000000',
  },
}
SCSS
$custom: #664bd2;
$custom-light: #9b7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#664bd2",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 252,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51951,
    "c": 0.19762,
    "h": 286.5
  },
  "luminance": 0.1251
}

Semantic roles & 50–950 ramp

primary
#664BD2
secondary
#CDD8A0
accent
#E345C3
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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