#664FB7#664FB7

#664FB7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.6% C 0.158 H 289.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#664FB7
RGBrgb(102, 79, 183)
HSLhsl(253, 42%, 51%)
HSVhsv(253, 57%, 72%)
CMYKcmyk(44.3%, 56.8%, 0%, 28.2%)
CIE-LABlab(40.95, 35.23, -52.08)
CIE-LCHlch(40.95, 62.88, 304.08°)
OKLaboklab(50.56% 0.0533 -0.1484)
OKLCHoklch(50.56% 0.158 289.7)
XYZxyz(16.8203, 11.8351, 46.1887)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FB7 #A0B74F
analogous
#4F6CB7 #664FB7 #9A4FB7
triadic
#664FB7 #B7664F #4FB766
tetradic
#664FB7 #B74F6C #A0B74F #4FB79A
square
#664FB7 #B74F6C #A0B74F #4FB79A
split-complementary
#664FB7 #B79A4F #6CB74F
monochromatic
#352963 #4D3A8F #664FB7 #8C7AC9 #B2A6DB

Accessibility & contrast

On white

6.24
#664FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#664FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FB7
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FB7#FFFFFF#000000##FFFFFF
##664FB71.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1163BA
Deuteranopia (green-blind)
#165EB5
Tritanopia (blue-blind)
#4E667B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #664fb7;
/* rgb */ color: rgb(102, 79, 183);
/* oklch */ color: oklch(50.6% 0.158 289.7);
Tailwind
colors: {
  custom: {
    50: '#9781cd',
    500: '#664fb7',
    950: '#000000',
  },
}
SCSS
$custom: #664fb7;
$custom-light: #9781cd;
$custom-dark: #000000;
JSON
{
  "hex": "#664fb7",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 253.269,
    "s": 41.935,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50561,
    "c": 0.15766,
    "h": 289.7
  },
  "luminance": 0.11836
}

Semantic roles & 50–950 ramp

primary
#664FB7
secondary
#BEC89A
accent
#D256B6
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #664FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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