#664BCB#664BCB

#664BCB is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.4% C 0.189 H 287.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#664BCB
RGBrgb(102, 75, 203)
HSLhsl(253, 55%, 55%)
HSVhsv(253, 63%, 80%)
CMYKcmyk(49.8%, 63.1%, 0%, 20.4%)
CIE-LABlab(41.48, 43.41, -62.88)
CIE-LCHlch(41.48, 76.41, 304.62°)
OKLaboklab(51.4% 0.0568 -0.1801)
OKLCHoklch(51.4% 0.189 287.5)
XYZxyz(18.7719, 12.1679, 57.8479)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BCB #B0CB4B
analogous
#4B70CB #664BCB #A64BCB
triadic
#664BCB #CB664B #4BCB66
tetradic
#664BCB #CB4B70 #B0CB4B #4BCBA6
square
#664BCB #CB4B70 #B0CB4B #4BCBA6
split-complementary
#664BCB #CBA64B #70CB4B
monochromatic
#352379 #4A31A8 #664BCB #8E7AD9 #B7AAE6

Accessibility & contrast

On white

6.12
#664BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#664BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BCB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BCB#FFFFFF#000000##FFFFFF
##664BCB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #664bcb;
/* rgb */ color: rgb(102, 75, 203);
/* oklch */ color: oklch(51.4% 0.189 287.5);
Tailwind
colors: {
  custom: {
    50: '#9a7fdc',
    500: '#664bcb',
    950: '#000000',
  },
}
SCSS
$custom: #664bcb;
$custom-light: #9a7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#664bcb",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 252.656,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51398,
    "c": 0.1889,
    "h": 287.5
  },
  "luminance": 0.12169
}

Semantic roles & 50–950 ramp

primary
#664BCB
secondary
#C9D49E
accent
#DF49BF
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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