#663B8A#663B8A

#663B8A is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.2% C 0.130 H 307.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#663B8A
RGBrgb(102, 59, 138)
HSLhsl(273, 40%, 39%)
HSVhsv(273, 57%, 54%)
CMYKcmyk(26.1%, 57.2%, 0%, 45.9%)
CIE-LABlab(33.54, 34.71, -36.95)
CIE-LCHlch(33.54, 50.69, 313.21°)
OKLaboklab(44.17% 0.0783 -0.104)
OKLCHoklch(44.17% 0.13 307)
XYZxyz(11.6300, 7.7878, 24.9304)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663B8A #5F8A3B
analogous
#3E3B8A #663B8A #8A3B86
triadic
#663B8A #8A663B #3B8A66
tetradic
#663B8A #8A3E3B #5F8A3B #3B868A
square
#663B8A #8A3E3B #5F8A3B #3B868A
split-complementary
#663B8A #868A3B #3B8A3E
monochromatic
#271634 #46295F #663B8A #864FB4 #A379C6

Accessibility & contrast

On white

8.21
#663B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#663B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663B8A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663B8A#FFFFFF#000000##FFFFFF
##663B8A1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204D8D
Deuteranopia (green-blind)
#2F4F88
Tritanopia (blue-blind)
#604A5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #663b8a;
/* rgb */ color: rgb(102, 59, 138);
/* oklch */ color: oklch(44.2% 0.130 307.0);
Tailwind
colors: {
  custom: {
    50: '#9473ac',
    500: '#663b8a',
    950: '#000000',
  },
}
SCSS
$custom: #663b8a;
$custom-light: #9473ac;
$custom-dark: #000000;
JSON
{
  "hex": "#663b8a",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 272.658,
    "s": 40.102,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44169,
    "c": 0.13015,
    "h": 307
  },
  "luminance": 0.07788
}

Semantic roles & 50–950 ramp

primary
#663B8A
secondary
#8EAF71
accent
#D0588F
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #663B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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