#664DCE#664DCE

#664DCE is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.190 H 286.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#664DCE
RGBrgb(102, 77, 206)
HSLhsl(252, 57%, 55%)
HSVhsv(252, 63%, 81%)
CMYKcmyk(50.5%, 62.6%, 0%, 19.2%)
CIE-LABlab(42.14, 43.15, -63.55)
CIE-LCHlch(42.14, 76.81, 304.18°)
OKLaboklab(51.94% 0.0546 -0.1821)
OKLCHoklch(51.94% 0.19 286.7)
XYZxyz(19.2707, 12.5878, 59.7948)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664DCE #B5CE4D
analogous
#4D74CE #664DCE #A64DCE
triadic
#664DCE #CE664D #4DCE66
tetradic
#664DCE #CE4D74 #B5CE4D #4DCEA6
square
#664DCE #CE4D74 #B5CE4D #4DCEA6
split-complementary
#664DCE #CEA64D #74CE4D
monochromatic
#34237E #4830AE #664DCE #8F7DDB #B8ADE8

Accessibility & contrast

On white

5.97
#664DCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#664DCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664DCE
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664DCE#FFFFFF#000000##FFFFFF
##664DCE1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#406C86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #664dce;
/* rgb */ color: rgb(102, 77, 206);
/* oklch */ color: oklch(51.9% 0.190 286.7);
Tailwind
colors: {
  custom: {
    50: '#9a80de',
    500: '#664dce',
    950: '#000000',
  },
}
SCSS
$custom: #664dce;
$custom-light: #9a80de;
$custom-dark: #000000;
JSON
{
  "hex": "#664dce",
  "rgb": {
    "r": 102,
    "g": 77,
    "b": 206
  },
  "hsl": {
    "h": 251.628,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51944,
    "c": 0.19012,
    "h": 286.7
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

primary
#664DCE
secondary
#CCD6A1
accent
#E048C3
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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