#664CCD#664CCD

#664CCD is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.7% C 0.190 H 287.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#664CCD
RGBrgb(102, 76, 205)
HSLhsl(252, 56%, 55%)
HSVhsv(252, 63%, 80%)
CMYKcmyk(50.2%, 62.9%, 0%, 19.6%)
CIE-LABlab(41.85, 43.43, -63.44)
CIE-LCHlch(41.85, 76.88, 304.39°)
OKLaboklab(51.71% 0.0557 -0.1818)
OKLCHoklch(51.71% 0.19 287)
XYZxyz(19.0801, 12.4005, 59.1340)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CCD #B3CD4C
analogous
#4C72CD #664CCD #A64CCD
triadic
#664CCD #CD664C #4CCD66
tetradic
#664CCD #CD4C72 #B3CD4C #4CCDA6
square
#664CCD #CD4C72 #B3CD4C #4CCDA6
split-complementary
#664CCD #CDA64C #72CD4C
monochromatic
#35237C #4930AC #664CCD #8F7CDA #B8ACE8

Accessibility & contrast

On white

6.03
#664CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#664CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CCD
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CCD#FFFFFF#000000##FFFFFF
##664CCD1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#416B85
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #664ccd;
/* rgb */ color: rgb(102, 76, 205);
/* oklch */ color: oklch(51.7% 0.190 287.0);
Tailwind
colors: {
  custom: {
    50: '#9a7fdd',
    500: '#664ccd',
    950: '#000000',
  },
}
SCSS
$custom: #664ccd;
$custom-light: #9a7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#664ccd",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 205
  },
  "hsl": {
    "h": 252.093,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5171,
    "c": 0.19014,
    "h": 287
  },
  "luminance": 0.12401
}

Semantic roles & 50–950 ramp

primary
#664CCD
secondary
#CBD59F
accent
#E048C1
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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