#664FAC#664FAC

#664FAC is a mid, vivid violet. Relative luminance 0.114; OKLCH L 49.8% C 0.143 H 291.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#664FAC
RGBrgb(102, 79, 172)
HSLhsl(255, 37%, 49%)
HSVhsv(255, 54%, 67%)
CMYKcmyk(40.7%, 54.1%, 0%, 32.5%)
CIE-LABlab(40.24, 32.05, -46.75)
CIE-LCHlch(40.24, 56.68, 304.44°)
OKLaboklab(49.8% 0.053 -0.1327)
OKLCHoklch(49.8% 0.143 291.8)
XYZxyz(15.7199, 11.3949, 40.3929)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FAC #95AC4F
analogous
#4F67AC #664FAC #954FAC
triadic
#664FAC #AC664F #4FAC66
tetradic
#664FAC #AC4F67 #95AC4F #4FAC95
square
#664FAC #AC4F67 #95AC4F #4FAC95
split-complementary
#664FAC #AC954F #67AC4F
monochromatic
#342858 #4D3C82 #664FAC #8A77C1 #AEA1D4

Accessibility & contrast

On white

6.40
#664FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#664FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FAC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FAC#FFFFFF#000000##FFFFFF
##664FAC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AF
Deuteranopia (green-blind)
#295DAA
Tritanopia (blue-blind)
#536276
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #664fac;
/* rgb */ color: rgb(102, 79, 172);
/* oklch */ color: oklch(49.8% 0.143 291.8);
Tailwind
colors: {
  custom: {
    50: '#9681c5',
    500: '#664fac',
    950: '#000000',
  },
}
SCSS
$custom: #664fac;
$custom-light: #9681c5;
$custom-dark: #000000;
JSON
{
  "hex": "#664fac",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 254.839,
    "s": 37.052,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49803,
    "c": 0.14289,
    "h": 291.8
  },
  "luminance": 0.11395
}

Semantic roles & 50–950 ramp

primary
#664FAC
secondary
#B6C196
accent
#CD5BB1
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #664FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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