#664BBE#664BBE

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

Color values

HEX#664BBE
RGBrgb(102, 75, 190)
HSLhsl(254, 47%, 52%)
HSVhsv(254, 61%, 75%)
CMYKcmyk(46.3%, 60.5%, 0%, 25.5%)
CIE-LABlab(40.53, 39.62, -56.86)
CIE-LCHlch(40.53, 69.31, 304.87°)
OKLaboklab(50.41% 0.0577 -0.1625)
OKLCHoklch(50.41% 0.172 289.6)
XYZxyz(17.2872, 11.5740, 50.0284)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BBE #A3BE4B
analogous
#4B6ABE #664BBE #A04BBE
triadic
#664BBE #BE664B #4BBE66
tetradic
#664BBE #BE4B6A #A3BE4B #4BBEA0
square
#664BBE #BE4B6A #A3BE4B #4BBEA0
split-complementary
#664BBE #BEA04B #6ABE4B
monochromatic
#362669 #4D3696 #664BBE #8C78CE #B2A5DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##664BBE#FFFFFF#000000##FFFFFF
##664BBE1.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)
#0062C2
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#4A657D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #664bbe;
/* rgb */ color: rgb(102, 75, 190);
/* oklch */ color: oklch(50.4% 0.172 289.6);
Tailwind
colors: {
  custom: {
    50: '#987ed2',
    500: '#664bbe',
    950: '#000000',
  },
}
SCSS
$custom: #664bbe;
$custom-light: #987ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#664bbe",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 190
  },
  "hsl": {
    "h": 254.087,
    "s": 46.939,
    "l": 51.961
  },
  "oklch": {
    "l": 0.50405,
    "c": 0.17241,
    "h": 289.6
  },
  "luminance": 0.11575
}

Semantic roles & 50–950 ramp

primary
#664BBE
secondary
#C0CC99
accent
#D751B7
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #664BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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