#664DCA#664DCA

#664DCA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.185 H 287.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#664DCA
RGBrgb(102, 77, 202)
HSLhsl(252, 54%, 55%)
HSVhsv(252, 62%, 79%)
CMYKcmyk(49.5%, 61.9%, 0%, 20.8%)
CIE-LABlab(41.84, 41.97, -61.72)
CIE-LCHlch(41.84, 74.64, 304.22°)
OKLaboklab(51.63% 0.0549 -0.1767)
OKLCHoklch(51.63% 0.185 287.2)
XYZxyz(18.7909, 12.3959, 57.2682)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664DCA #B1CA4D
analogous
#4D73CA #664DCA #A54DCA
triadic
#664DCA #CA664D #4DCA66
tetradic
#664DCA #CA4D73 #B1CA4D #4DCAA5
square
#664DCA #CA4D73 #B1CA4D #4DCAA5
split-complementary
#664DCA #CAA54D #73CA4D
monochromatic
#352479 #4A32A8 #664DCA #8F7CD8 #B7ABE6

Accessibility & contrast

On white

6.04
#664DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #664DCA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664DCA#FFFFFF#000000##FFFFFF
##664DCA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#436B84
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #664dca;
/* rgb */ color: rgb(102, 77, 202);
/* oklch */ color: oklch(51.6% 0.185 287.2);
Tailwind
colors: {
  custom: {
    50: '#9980db',
    500: '#664dca',
    950: '#000000',
  },
}
SCSS
$custom: #664dca;
$custom-light: #9980db;
$custom-dark: #000000;
JSON
{
  "hex": "#664dca",
  "rgb": {
    "r": 102,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 252,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51634,
    "c": 0.18506,
    "h": 287.2
  },
  "luminance": 0.12397
}

Semantic roles & 50–950 ramp

primary
#664DCA
secondary
#C9D49F
accent
#DD4AC0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #664DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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