#664CD8#664CD8

#664CD8 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 52.6% C 0.204 H 285.5°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#664CD8
RGBrgb(102, 76, 216)
HSLhsl(251, 64%, 57%)
HSVhsv(251, 65%, 85%)
CMYKcmyk(52.8%, 64.8%, 0%, 15.3%)
CIE-LABlab(42.69, 46.67, -68.39)
CIE-LCHlch(42.69, 82.80, 304.31°)
OKLaboklab(52.58% 0.0546 -0.1964)
OKLCHoklch(52.58% 0.204 285.5)
XYZxyz(20.4549, 12.9504, 66.3743)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CD8 #BED84C
analogous
#4C78D8 #664CD8 #AC4CD8
triadic
#664CD8 #D8664C #4CD866
tetradic
#664CD8 #D84C78 #BED84C #4CD8AC
square
#664CD8 #D84C78 #BED84C #4CD8AC
split-complementary
#664CD8 #D8AC4C #78D84C
monochromatic
#331E8B #4529BE #664CD8 #917EE3 #BCB1EE

Accessibility & contrast

On white

5.85
#664CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#664CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CD8
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CD8#FFFFFF#000000##FFFFFF
##664CD81.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#0061D5
Tritanopia (blue-blind)
#376F8B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #664cd8;
/* rgb */ color: rgb(102, 76, 216);
/* oklch */ color: oklch(52.6% 0.204 285.5);
Tailwind
colors: {
  custom: {
    50: '#9b80e5',
    500: '#664cd8',
    950: '#000000',
  },
}
SCSS
$custom: #664cd8;
$custom-light: #9b80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#664cd8",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 251.143,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52584,
    "c": 0.2038,
    "h": 285.5
  },
  "luminance": 0.12952
}

Semantic roles & 50–950 ramp

primary
#664CD8
secondary
#D2DCA4
accent
#E741C8
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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