#664BCC#664BCC

#664BCC is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.5% C 0.190 H 287.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#664BCC
RGBrgb(102, 75, 204)
HSLhsl(253, 56%, 55%)
HSVhsv(253, 63%, 80%)
CMYKcmyk(50%, 63.2%, 0%, 20%)
CIE-LABlab(41.56, 43.71, -63.33)
CIE-LCHlch(41.56, 76.95, 304.61°)
OKLaboklab(51.48% 0.0568 -0.1815)
OKLCHoklch(51.48% 0.19 287.4)
XYZxyz(18.8915, 12.2157, 58.4775)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BCC #B1CC4B
analogous
#4B71CC #664BCC #A64BCC
triadic
#664BCC #CC664B #4BCC66
tetradic
#664BCC #CC4B71 #B1CC4B #4BCCA6
square
#664BCC #CC4B71 #B1CC4B #4BCCA6
split-complementary
#664BCC #CCA64B #71CC4B
monochromatic
#35237A #4A30AA #664BCC #8F7BDA #B7AAE7

Accessibility & contrast

On white

6.10
#664BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#664BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BCC
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BCC#FFFFFF#000000##FFFFFF
##664BCC1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #664bcc;
/* rgb */ color: rgb(102, 75, 204);
/* oklch */ color: oklch(51.5% 0.190 287.4);
Tailwind
colors: {
  custom: {
    50: '#9a7fdc',
    500: '#664bcc',
    950: '#000000',
  },
}
SCSS
$custom: #664bcc;
$custom-light: #9a7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#664bcc",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 204
  },
  "hsl": {
    "h": 252.558,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51476,
    "c": 0.19016,
    "h": 287.4
  },
  "luminance": 0.12217
}

Semantic roles & 50–950 ramp

primary
#664BCC
secondary
#C9D59E
accent
#DF49C0
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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