#664BCA#664BCA

#664BCA is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.3% C 0.188 H 287.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#664BCA
RGBrgb(102, 75, 202)
HSLhsl(253, 55%, 54%)
HSVhsv(253, 63%, 79%)
CMYKcmyk(49.5%, 62.9%, 0%, 20.8%)
CIE-LABlab(41.41, 43.12, -62.42)
CIE-LCHlch(41.41, 75.87, 304.64°)
OKLaboklab(51.32% 0.0569 -0.1788)
OKLCHoklch(51.32% 0.188 287.7)
XYZxyz(18.6531, 12.1204, 57.2223)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BCA #AFCA4B
analogous
#4B70CA #664BCA #A64BCA
triadic
#664BCA #CA664B #4BCA66
tetradic
#664BCA #CA4B70 #AFCA4B #4BCAA6
square
#664BCA #CA4B70 #AFCA4B #4BCAA6
split-complementary
#664BCA #CAA64B #70CA4B
monochromatic
#352377 #4A31A7 #664BCA #8E7AD8 #B6AAE6

Accessibility & contrast

On white

6.13
#664BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#664BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BCA
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BCA#FFFFFF#000000##FFFFFF
##664BCA1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#436983
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #664bca;
/* rgb */ color: rgb(102, 75, 202);
/* oklch */ color: oklch(51.3% 0.188 287.7);
Tailwind
colors: {
  custom: {
    50: '#9a7fdb',
    500: '#664bca',
    950: '#000000',
  },
}
SCSS
$custom: #664bca;
$custom-light: #9a7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#664bca",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 252.756,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5132,
    "c": 0.18765,
    "h": 287.7
  },
  "luminance": 0.12121
}

Semantic roles & 50–950 ramp

primary
#664BCA
secondary
#C8D39D
accent
#DE4ABE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #664BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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