#664DCB#664DCB

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

Color values

HEX#664DCB
RGBrgb(102, 77, 203)
HSLhsl(252, 55%, 55%)
HSVhsv(252, 62%, 80%)
CMYKcmyk(49.8%, 62.1%, 0%, 20.4%)
CIE-LABlab(41.91, 42.27, -62.18)
CIE-LCHlch(41.91, 75.18, 304.21°)
OKLaboklab(51.71% 0.0548 -0.1781)
OKLCHoklch(51.71% 0.186 287.1)
XYZxyz(18.9097, 12.4435, 57.8938)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664DCB #B2CB4D
analogous
#4D73CB #664DCB #A54DCB
triadic
#664DCB #CB664D #4DCB66
tetradic
#664DCB #CB4D73 #B2CB4D #4DCBA5
square
#664DCB #CB4D73 #B2CB4D #4DCBA5
split-complementary
#664DCB #CBA54D #73CB4D
monochromatic
#35247A #4931A9 #664DCB #8F7CD9 #B7ACE7

Accessibility & contrast

On white

6.02
#664DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#664DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664DCB
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664DCB#FFFFFF#000000##FFFFFF
##664DCB1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#426B85
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #664dcb;
/* rgb */ color: rgb(102, 77, 203);
/* oklch */ color: oklch(51.7% 0.186 287.1);
Tailwind
colors: {
  custom: {
    50: '#9a80dc',
    500: '#664dcb',
    950: '#000000',
  },
}
SCSS
$custom: #664dcb;
$custom-light: #9a80dc;
$custom-dark: #000000;
JSON
{
  "hex": "#664dcb",
  "rgb": {
    "r": 102,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 251.905,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51711,
    "c": 0.18633,
    "h": 287.1
  },
  "luminance": 0.12444
}

Semantic roles & 50–950 ramp

primary
#664DCB
secondary
#CAD49F
accent
#DE4AC1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #664DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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