#664AE1#664AE1

#664AE1 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.0% C 0.217 H 284.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#664AE1
RGBrgb(102, 74, 225)
HSLhsl(251, 72%, 59%)
HSVhsv(251, 67%, 88%)
CMYKcmyk(54.7%, 67.1%, 0%, 11.8%)
CIE-LABlab(43.00, 50.41, -73.02)
CIE-LCHlch(43.00, 88.73, 304.62°)
OKLaboklab(53.03% 0.0552 -0.2099)
OKLCHoklch(53.03% 0.217 284.7)
XYZxyz(21.5148, 13.1573, 72.6255)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664AE1 #C5E14A
analogous
#4A79E1 #664AE1 #B14AE1
triadic
#664AE1 #E1664A #4AE166
tetradic
#664AE1 #E14A79 #C5E14A #4AE1B1
square
#664AE1 #E14A79 #C5E14A #4AE1B1
split-complementary
#664AE1 #E1B14A #79E14A
monochromatic
#311997 #4122CC #664AE1 #927EEA #BFB3F2

Accessibility & contrast

On white

5.78
#664AE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#664AE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664AE1
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664AE1#FFFFFF#000000##FFFFFF
##664AE11.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#2E7190
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #664ae1;
/* rgb */ color: rgb(102, 74, 225);
/* oklch */ color: oklch(53.0% 0.217 284.7);
Tailwind
colors: {
  custom: {
    50: '#9d7feb',
    500: '#664ae1',
    950: '#000000',
  },
}
SCSS
$custom: #664ae1;
$custom-light: #9d7feb;
$custom-dark: #000000;
JSON
{
  "hex": "#664ae1",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 225
  },
  "hsl": {
    "h": 251.126,
    "s": 71.564,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53032,
    "c": 0.21708,
    "h": 284.7
  },
  "luminance": 0.13159
}

Semantic roles & 50–950 ramp

primary
#664AE1
secondary
#D6E1A6
accent
#EE39CD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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