#664BCD#664BCD

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

Color values

HEX#664BCD
RGBrgb(102, 75, 205)
HSLhsl(252, 57%, 55%)
HSVhsv(252, 63%, 80%)
CMYKcmyk(50.2%, 63.4%, 0%, 19.6%)
CIE-LABlab(41.63, 44.00, -63.79)
CIE-LCHlch(41.63, 77.49, 304.60°)
OKLaboklab(51.55% 0.0567 -0.1828)
OKLCHoklch(51.55% 0.191 287.2)
XYZxyz(19.0118, 12.2638, 59.1112)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BCD #B2CD4B
analogous
#4B71CD #664BCD #A74BCD
triadic
#664BCD #CD664B #4BCD66
tetradic
#664BCD #CD4B71 #B2CD4B #4BCDA7
square
#664BCD #CD4B71 #B2CD4B #4BCDA7
split-complementary
#664BCD #CDA74B #71CD4B
monochromatic
#35227B #4930AB #664BCD #8F7BDA #B7ABE8

Accessibility & contrast

On white

6.08
#664BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#664BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BCD
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BCD#FFFFFF#000000##FFFFFF
##664BCD1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#416A85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #664bcd;
/* rgb */ color: rgb(102, 75, 205);
/* oklch */ color: oklch(51.6% 0.191 287.2);
Tailwind
colors: {
  custom: {
    50: '#9a7fdd',
    500: '#664bcd',
    950: '#000000',
  },
}
SCSS
$custom: #664bcd;
$custom-light: #9a7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#664bcd",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 205
  },
  "hsl": {
    "h": 252.462,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51555,
    "c": 0.19141,
    "h": 287.2
  },
  "luminance": 0.12265
}

Semantic roles & 50–950 ramp

primary
#664BCD
secondary
#CAD59F
accent
#E048C0
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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