#664CCB#664CCB

#664CCB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.6% C 0.188 H 287.3°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#664CCB
RGBrgb(102, 76, 203)
HSLhsl(252, 55%, 55%)
HSVhsv(252, 63%, 80%)
CMYKcmyk(49.8%, 62.6%, 0%, 20.4%)
CIE-LABlab(41.70, 42.84, -62.53)
CIE-LCHlch(41.70, 75.80, 304.42°)
OKLaboklab(51.55% 0.0558 -0.1791)
OKLCHoklch(51.55% 0.188 287.3)
XYZxyz(18.8403, 12.3046, 57.8706)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CCB #B1CB4C
analogous
#4C72CB #664CCB #A54CCB
triadic
#664CCB #CB664C #4CCB66
tetradic
#664CCB #CB4C72 #B1CB4C #4CCBA5
square
#664CCB #CB4C72 #B1CB4C #4CCBA5
split-complementary
#664CCB #CBA54C #72CB4C
monochromatic
#352379 #4A31A9 #664CCB #8F7BD9 #B7ABE7

Accessibility & contrast

On white

6.07
#664CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#664CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CCB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CCB#FFFFFF#000000##FFFFFF
##664CCB1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#426A84
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #664ccb;
/* rgb */ color: rgb(102, 76, 203);
/* oklch */ color: oklch(51.6% 0.188 287.3);
Tailwind
colors: {
  custom: {
    50: '#9a7fdc',
    500: '#664ccb',
    950: '#000000',
  },
}
SCSS
$custom: #664ccb;
$custom-light: #9a7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#664ccb",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 203
  },
  "hsl": {
    "h": 252.283,
    "s": 54.978,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51554,
    "c": 0.18762,
    "h": 287.3
  },
  "luminance": 0.12305
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #664CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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