#664AE5#664AE5

#664AE5 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.4% C 0.222 H 284.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#664AE5
RGBrgb(102, 74, 229)
HSLhsl(251, 75%, 59%)
HSVhsv(251, 68%, 90%)
CMYKcmyk(55.5%, 67.7%, 0%, 10.2%)
CIE-LABlab(43.33, 51.58, -74.76)
CIE-LCHlch(43.33, 90.83, 304.61°)
OKLaboklab(53.37% 0.0546 -0.215)
OKLCHoklch(53.37% 0.222 284.2)
XYZxyz(22.0668, 13.3782, 75.5330)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664AE5 #C9E54A
analogous
#4A7CE5 #664AE5 #B44AE5
triadic
#664AE5 #E5664A #4AE566
tetradic
#664AE5 #E54A7C #C9E54A #4AE5B4
square
#664AE5 #E54A7C #C9E54A #4AE5B4
split-complementary
#664AE5 #E5B44A #7CE54A
monochromatic
#2F179E #3F1ED3 #664AE5 #9380ED #C0B5F4

Accessibility & contrast

On white

5.71
#664AE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#664AE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664AE5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664AE5#FFFFFF#000000##FFFFFF
##664AE51.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#287292
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #664ae5;
/* rgb */ color: rgb(102, 74, 229);
/* oklch */ color: oklch(53.4% 0.222 284.2);
Tailwind
colors: {
  custom: {
    50: '#9d7fee',
    500: '#664ae5',
    950: '#000000',
  },
}
SCSS
$custom: #664ae5;
$custom-light: #9d7fee;
$custom-dark: #000000;
JSON
{
  "hex": "#664ae5",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 229
  },
  "hsl": {
    "h": 250.839,
    "s": 74.879,
    "l": 59.412
  },
  "oklch": {
    "l": 0.53369,
    "c": 0.22186,
    "h": 284.2
  },
  "luminance": 0.13379
}

Semantic roles & 50–950 ramp

primary
#664AE5
secondary
#D9E4A7
accent
#F136D0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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