#664BBB#664BBB

#664BBB is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.2% C 0.169 H 290.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#664BBB
RGBrgb(102, 75, 187)
HSLhsl(254, 45%, 51%)
HSVhsv(254, 60%, 73%)
CMYKcmyk(45.5%, 59.9%, 0%, 26.7%)
CIE-LABlab(40.32, 38.75, -55.45)
CIE-LCHlch(40.32, 67.65, 304.95°)
OKLaboklab(50.18% 0.0579 -0.1583)
OKLCHoklch(50.18% 0.169 290.1)
XYZxyz(16.9627, 11.4442, 48.3193)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BBB #A0BB4B
analogous
#4B68BB #664BBB #9E4BBB
triadic
#664BBB #BB664B #4BBB66
tetradic
#664BBB #BB4B68 #A0BB4B #4BBB9E
square
#664BBB #BB4B68 #A0BB4B #4BBB9E
split-complementary
#664BBB #BB9E4B #68BB4B
monochromatic
#352665 #4D3792 #664BBB #8C77CC #B2A4DD

Accessibility & contrast

On white

6.38
#664BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#664BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BBB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BBB#FFFFFF#000000##FFFFFF
##664BBB1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#4C647C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #664bbb;
/* rgb */ color: rgb(102, 75, 187);
/* oklch */ color: oklch(50.2% 0.169 290.1);
Tailwind
colors: {
  custom: {
    50: '#987ed0',
    500: '#664bbb',
    950: '#000000',
  },
}
SCSS
$custom: #664bbb;
$custom-light: #987ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#664bbb",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 254.464,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50182,
    "c": 0.16855,
    "h": 290.1
  },
  "luminance": 0.11445
}

Semantic roles & 50–950 ramp

primary
#664BBB
secondary
#BECA98
accent
#D553B6
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #664BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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