#664CE7#664CE7

#664CE7 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 53.8% C 0.222 H 283.7°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#664CE7
RGBrgb(102, 76, 231)
HSLhsl(250, 76%, 60%)
HSVhsv(250, 67%, 91%)
CMYKcmyk(55.8%, 67.1%, 0%, 9.4%)
CIE-LABlab(43.89, 51.08, -74.97)
CIE-LCHlch(43.89, 90.72, 304.27°)
OKLaboklab(53.82% 0.0526 -0.2157)
OKLCHoklch(53.82% 0.222 283.7)
XYZxyz(22.4833, 13.7618, 77.0574)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CE7 #CDE74C
analogous
#4C7FE7 #664CE7 #B44CE7
triadic
#664CE7 #E7664C #4CE766
tetradic
#664CE7 #E74C7F #CDE74C #4CE7B4
square
#664CE7 #E74C7F #CDE74C #4CE7B4
split-complementary
#664CE7 #E7B44C #7FE74C
monochromatic
#2D16A3 #3D1DD9 #664CE7 #9482EE #C2B8F5

Accessibility & contrast

On white

5.60
#664CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#664CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CE7
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CE7#FFFFFF#000000##FFFFFF
##664CE71.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#257493
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #664ce7;
/* rgb */ color: rgb(102, 76, 231);
/* oklch */ color: oklch(53.8% 0.222 283.7);
Tailwind
colors: {
  custom: {
    50: '#9e80f0',
    500: '#664ce7',
    950: '#000000',
  },
}
SCSS
$custom: #664ce7;
$custom-light: #9e80f0;
$custom-dark: #000000;
JSON
{
  "hex": "#664ce7",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 231
  },
  "hsl": {
    "h": 250.065,
    "s": 76.355,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53823,
    "c": 0.222,
    "h": 283.7
  },
  "luminance": 0.13763
}

Semantic roles & 50–950 ramp

primary
#664CE7
secondary
#DBE5AA
accent
#D90DB6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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