#663EA7#663EA7

#663EA7 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.162 H 297.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#663EA7
RGBrgb(102, 62, 167)
HSLhsl(263, 46%, 45%)
HSVhsv(263, 63%, 65%)
CMYKcmyk(38.9%, 62.9%, 0%, 34.5%)
CIE-LABlab(36.10, 40.59, -50.43)
CIE-LCHlch(36.10, 64.74, 308.83°)
OKLaboklab(46.66% 0.074 -0.1435)
OKLCHoklch(46.66% 0.162 297.3)
XYZxyz(14.1754, 9.0598, 37.5536)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663EA7 #7FA73E
analogous
#3E4AA7 #663EA7 #9B3EA7
triadic
#663EA7 #A7663E #3EA766
tetradic
#663EA7 #A73E4A #7FA73E #3EA79B
square
#663EA7 #A73E4A #7FA73E #3EA79B
split-complementary
#663EA7 #A79B3E #4AA73E
monochromatic
#2F1D4E #4B2D7A #663EA7 #855FC3 #A78BD4

Accessibility & contrast

On white

7.47
#663EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#663EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663EA7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663EA7#FFFFFF#000000##FFFFFF
##663EA71.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#0754A5
Tritanopia (blue-blind)
#56556C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #663ea7;
/* rgb */ color: rgb(102, 62, 167);
/* oklch */ color: oklch(46.7% 0.162 297.3);
Tailwind
colors: {
  custom: {
    50: '#9675c2',
    500: '#663ea7',
    950: '#000000',
  },
}
SCSS
$custom: #663ea7;
$custom-light: #9675c2;
$custom-dark: #000000;
JSON
{
  "hex": "#663ea7",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 262.857,
    "s": 45.852,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46656,
    "c": 0.1615,
    "h": 297.3
  },
  "luminance": 0.0906
}

Semantic roles & 50–950 ramp

primary
#663EA7
secondary
#A8BF82
accent
#D652A4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663EA7

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

Preview Lab → · Contrast checker → · Palette generator →

#663EA7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva