#664BD8#664BD8

#664BD8 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.4% C 0.205 H 285.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#664BD8
RGBrgb(102, 75, 216)
HSLhsl(251, 64%, 57%)
HSVhsv(251, 65%, 85%)
CMYKcmyk(52.8%, 65.3%, 0%, 15.3%)
CIE-LABlab(42.48, 47.22, -68.73)
CIE-LCHlch(42.48, 83.39, 304.49°)
OKLaboklab(52.43% 0.0555 -0.1973)
OKLCHoklch(52.43% 0.205 285.7)
XYZxyz(20.3865, 12.8137, 66.3515)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BD8 #BDD84B
analogous
#4B77D8 #664BD8 #AC4BD8
triadic
#664BD8 #D8664B #4BD866
tetradic
#664BD8 #D84B77 #BDD84B #4BD8AC
square
#664BD8 #D84B77 #BDD84B #4BD8AC
split-complementary
#664BD8 #D8AC4B #77D84B
monochromatic
#331E8B #4529BD #664BD8 #917DE3 #BCB0EE

Accessibility & contrast

On white

5.89
#664BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#664BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BD8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BD8#FFFFFF#000000##FFFFFF
##664BD81.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#376E8B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664bd8;
/* rgb */ color: rgb(102, 75, 216);
/* oklch */ color: oklch(52.4% 0.205 285.7);
Tailwind
colors: {
  custom: {
    50: '#9b7fe5',
    500: '#664bd8',
    950: '#000000',
  },
}
SCSS
$custom: #664bd8;
$custom-light: #9b7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#664bd8",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 251.489,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52435,
    "c": 0.20501,
    "h": 285.7
  },
  "luminance": 0.12815
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #664BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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