#664CA5#664CA5

#664CA5 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 48.8% C 0.138 H 294.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#664CA5
RGBrgb(102, 76, 165)
HSLhsl(258, 37%, 47%)
HSVhsv(258, 54%, 65%)
CMYKcmyk(38.2%, 53.9%, 0%, 35.3%)
CIE-LABlab(39.09, 31.87, -44.43)
CIE-LCHlch(39.09, 54.68, 305.66°)
OKLaboklab(48.81% 0.0565 -0.1259)
OKLCHoklch(48.81% 0.138 294.2)
XYZxyz(14.8537, 10.7100, 36.8747)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CA5 #8BA54C
analogous
#4C5FA5 #664CA5 #924CA5
triadic
#664CA5 #A5664C #4CA566
tetradic
#664CA5 #A54C5F #8BA54C #4CA592
square
#664CA5 #A54C5F #8BA54C #4CA592
split-complementary
#664CA5 #A5924C #5FA54C
monochromatic
#322551 #4C397B #664CA5 #8771BD #AA9BD1

Accessibility & contrast

On white

6.68
#664CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#664CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CA5
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CA5#FFFFFF#000000##FFFFFF
##664CA51.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA8
Deuteranopia (green-blind)
#2C5BA3
Tritanopia (blue-blind)
#565E71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #664ca5;
/* rgb */ color: rgb(102, 76, 165);
/* oklch */ color: oklch(48.8% 0.138 294.2);
Tailwind
colors: {
  custom: {
    50: '#957fc0',
    500: '#664ca5',
    950: '#000000',
  },
}
SCSS
$custom: #664ca5;
$custom-light: #957fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#664ca5",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 257.528,
    "s": 36.929,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48808,
    "c": 0.13801,
    "h": 294.2
  },
  "luminance": 0.1071
}

Semantic roles & 50–950 ramp

primary
#664CA5
secondary
#B0BD8F
accent
#CD5BAC
background
#F9F7FB
surface
#F2EEF7
border
#CCC9D0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #664CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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