#664BBF#664BBF

#664BBF is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.5% C 0.174 H 289.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#664BBF
RGBrgb(102, 75, 191)
HSLhsl(254, 48%, 52%)
HSVhsv(254, 61%, 75%)
CMYKcmyk(46.6%, 60.7%, 0%, 25.1%)
CIE-LABlab(40.60, 39.91, -57.33)
CIE-LCHlch(40.60, 69.86, 304.85°)
OKLaboklab(50.48% 0.0577 -0.1638)
OKLCHoklch(50.48% 0.174 289.4)
XYZxyz(17.3969, 11.6179, 50.6059)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BBF #A4BF4B
analogous
#4B6ABF #664BBF #A04BBF
triadic
#664BBF #BF664B #4BBF66
tetradic
#664BBF #BF4B6A #A4BF4B #4BBFA0
square
#664BBF #BF4B6A #A4BF4B #4BBFA0
split-complementary
#664BBF #BFA04B #6ABF4B
monochromatic
#36266A #4C3697 #664BBF #8C78CF #B3A5DF

Accessibility & contrast

On white

6.32
#664BBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #664BBF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BBF#FFFFFF#000000##FFFFFF
##664BBF1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#4A667E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #664bbf;
/* rgb */ color: rgb(102, 75, 191);
/* oklch */ color: oklch(50.5% 0.174 289.4);
Tailwind
colors: {
  custom: {
    50: '#987ed3',
    500: '#664bbf',
    950: '#000000',
  },
}
SCSS
$custom: #664bbf;
$custom-light: #987ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#664bbf",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 191
  },
  "hsl": {
    "h": 253.966,
    "s": 47.541,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50479,
    "c": 0.17369,
    "h": 289.4
  },
  "luminance": 0.11619
}

Semantic roles & 50–950 ramp

primary
#664BBF
secondary
#C0CC9A
accent
#D751B8
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #664BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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