#664CDF#664CDF

#664CDF is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.2% C 0.212 H 284.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#664CDF
RGBrgb(102, 76, 223)
HSLhsl(251, 70%, 59%)
HSVhsv(251, 66%, 87%)
CMYKcmyk(54.3%, 65.9%, 0%, 12.5%)
CIE-LABlab(43.24, 48.73, -71.49)
CIE-LCHlch(43.24, 86.52, 304.28°)
OKLaboklab(53.16% 0.0537 -0.2054)
OKLCHoklch(53.16% 0.212 284.7)
XYZxyz(21.3792, 13.3202, 71.2422)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CDF #C5DF4C
analogous
#4C7BDF #664CDF #AF4CDF
triadic
#664CDF #DF664C #4CDF66
tetradic
#664CDF #DF4C7B #C5DF4C #4CDFAF
square
#664CDF #DF4C7B #C5DF4C #4CDFAF
split-complementary
#664CDF #DFAF4C #7BDF4C
monochromatic
#311B96 #4124CA #664CDF #9280E8 #BFB4F2

Accessibility & contrast

On white

5.73
#664CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#664CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CDF
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CDF#FFFFFF#000000##FFFFFF
##664CDF1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE4
Deuteranopia (green-blind)
#0061DC
Tritanopia (blue-blind)
#30718F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #664cdf;
/* rgb */ color: rgb(102, 76, 223);
/* oklch */ color: oklch(53.2% 0.212 284.7);
Tailwind
colors: {
  custom: {
    50: '#9c80ea',
    500: '#664cdf',
    950: '#000000',
  },
}
SCSS
$custom: #664cdf;
$custom-light: #9c80ea;
$custom-dark: #000000;
JSON
{
  "hex": "#664cdf",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 223
  },
  "hsl": {
    "h": 250.612,
    "s": 69.668,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53156,
    "c": 0.21236,
    "h": 284.7
  },
  "luminance": 0.13321
}

Semantic roles & 50–950 ramp

primary
#664CDF
secondary
#D6E0A6
accent
#EC3BCD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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