#664CDC#664CDC

#664CDC is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 52.9% C 0.209 H 285.0°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#664CDC
RGBrgb(102, 76, 220)
HSLhsl(251, 67%, 58%)
HSVhsv(251, 65%, 86%)
CMYKcmyk(53.6%, 65.5%, 0%, 13.7%)
CIE-LABlab(43.00, 47.84, -70.17)
CIE-LCHlch(43.00, 84.93, 304.29°)
OKLaboklab(52.91% 0.0541 -0.2016)
OKLCHoklch(52.91% 0.209 285)
XYZxyz(20.9783, 13.1598, 69.1310)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CDC #C2DC4C
analogous
#4C7ADC #664CDC #AE4CDC
triadic
#664CDC #DC664C #4CDC66
tetradic
#664CDC #DC4C7A #C2DC4C #4CDCAE
square
#664CDC #DC4C7A #C2DC4C #4CDCAE
split-complementary
#664CDC #DCAE4C #7ADC4C
monochromatic
#311C91 #4326C4 #664CDC #927FE6 #BEB2F0

Accessibility & contrast

On white

5.78
#664CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#664CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CDC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CDC#FFFFFF#000000##FFFFFF
##664CDC1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#33708D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #664cdc;
/* rgb */ color: rgb(102, 76, 220);
/* oklch */ color: oklch(52.9% 0.209 285.0);
Tailwind
colors: {
  custom: {
    50: '#9c80e8',
    500: '#664cdc',
    950: '#000000',
  },
}
SCSS
$custom: #664cdc;
$custom-light: #9c80e8;
$custom-dark: #000000;
JSON
{
  "hex": "#664cdc",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 250.833,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.5291,
    "c": 0.2087,
    "h": 285
  },
  "luminance": 0.13161
}

Semantic roles & 50–950 ramp

primary
#664CDC
secondary
#D4DFA5
accent
#EA3ECB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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