#664CBB#664CBB

#664CBB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.3% C 0.167 H 289.8°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#664CBB
RGBrgb(102, 76, 187)
HSLhsl(254, 45%, 52%)
HSVhsv(254, 59%, 73%)
CMYKcmyk(45.5%, 59.4%, 0%, 26.7%)
CIE-LABlab(40.54, 38.17, -55.09)
CIE-LCHlch(40.54, 67.02, 304.72°)
OKLaboklab(50.35% 0.0567 -0.1572)
OKLCHoklch(50.35% 0.167 289.8)
XYZxyz(17.0310, 11.5809, 48.3421)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CBB #A1BB4C
analogous
#4C6ABB #664CBB #9E4CBB
triadic
#664CBB #BB664C #4CBB66
tetradic
#664CBB #BB4C6A #A1BB4C #4CBB9E
square
#664CBB #BB4C6A #A1BB4C #4CBB9E
split-complementary
#664CBB #BB9E4C #6ABB4C
monochromatic
#362766 #4D3892 #664CBB #8C78CC #B2A5DD

Accessibility & contrast

On white

6.33
#664CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#664CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CBB
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CBB#FFFFFF#000000##FFFFFF
##664CBB1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#4C657C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #664cbb;
/* rgb */ color: rgb(102, 76, 187);
/* oklch */ color: oklch(50.3% 0.167 289.8);
Tailwind
colors: {
  custom: {
    50: '#987fd0',
    500: '#664cbb',
    950: '#000000',
  },
}
SCSS
$custom: #664cbb;
$custom-light: #987fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#664cbb",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 254.054,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50346,
    "c": 0.16715,
    "h": 289.8
  },
  "luminance": 0.11582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #664CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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