#664EA4#664EA4

#664EA4 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.1% C 0.134 H 293.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#664EA4
RGBrgb(102, 78, 164)
HSLhsl(257, 36%, 47%)
HSVhsv(257, 52%, 64%)
CMYKcmyk(37.8%, 52.4%, 0%, 35.7%)
CIE-LABlab(39.50, 30.38, -43.17)
CIE-LCHlch(39.50, 52.79, 305.14°)
OKLaboklab(49.1% 0.0538 -0.1222)
OKLCHoklch(49.1% 0.134 293.8)
XYZxyz(14.9030, 10.9536, 36.4438)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664EA4 #8CA44E
analogous
#4E61A4 #664EA4 #914EA4
triadic
#664EA4 #A4664E #4EA466
tetradic
#664EA4 #A44E61 #8CA44E #4EA491
square
#664EA4 #A44E61 #8CA44E #4EA491
split-complementary
#664EA4 #A4914E #61A44E
monochromatic
#322751 #4C3A7B #664EA4 #8773BC #AB9CD0

Accessibility & contrast

On white

6.58
#664EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#664EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664EA4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664EA4#FFFFFF#000000##FFFFFF
##664EA41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5EA7
Deuteranopia (green-blind)
#305CA2
Tritanopia (blue-blind)
#575F71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #664ea4;
/* rgb */ color: rgb(102, 78, 164);
/* oklch */ color: oklch(49.1% 0.134 293.8);
Tailwind
colors: {
  custom: {
    50: '#9580bf',
    500: '#664ea4',
    950: '#000000',
  },
}
SCSS
$custom: #664ea4;
$custom-light: #9580bf;
$custom-dark: #000000;
JSON
{
  "hex": "#664ea4",
  "rgb": {
    "r": 102,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 256.744,
    "s": 35.537,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49096,
    "c": 0.13353,
    "h": 293.8
  },
  "luminance": 0.10954
}

Semantic roles & 50–950 ramp

primary
#664EA4
secondary
#B1BD91
accent
#CC5CAD
background
#F9F7FB
surface
#F2EEF7
border
#CCC9D0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #664EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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