#664EA5#664EA5

#664EA5 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.2% C 0.135 H 293.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#664EA5
RGBrgb(102, 78, 165)
HSLhsl(257, 36%, 48%)
HSVhsv(257, 53%, 65%)
CMYKcmyk(38.2%, 52.7%, 0%, 35.3%)
CIE-LABlab(39.56, 30.67, -43.67)
CIE-LCHlch(39.56, 53.36, 305.08°)
OKLaboklab(49.16% 0.0539 -0.1237)
OKLCHoklch(49.16% 0.135 293.5)
XYZxyz(14.9936, 10.9898, 36.9213)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664EA5 #8DA54E
analogous
#4E61A5 #664EA5 #914EA5
triadic
#664EA5 #A5664E #4EA566
tetradic
#664EA5 #A54E61 #8DA54E #4EA591
square
#664EA5 #A54E61 #8DA54E #4EA591
split-complementary
#664EA5 #A5914E #61A54E
monochromatic
#332752 #4C3A7B #664EA5 #8873BD #AB9DD1

Accessibility & contrast

On white

6.57
#664EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#664EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664EA5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664EA5#FFFFFF#000000##FFFFFF
##664EA51.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA8
Deuteranopia (green-blind)
#2F5CA3
Tritanopia (blue-blind)
#566072
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #664ea5;
/* rgb */ color: rgb(102, 78, 165);
/* oklch */ color: oklch(49.2% 0.135 293.5);
Tailwind
colors: {
  custom: {
    50: '#9580c0',
    500: '#664ea5',
    950: '#000000',
  },
}
SCSS
$custom: #664ea5;
$custom-light: #9580c0;
$custom-dark: #000000;
JSON
{
  "hex": "#664ea5",
  "rgb": {
    "r": 102,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 256.552,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49161,
    "c": 0.1349,
    "h": 293.5
  },
  "luminance": 0.1099
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #664EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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