#663B9D#663B9D

#663B9D is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.5% C 0.154 H 300.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#663B9D
RGBrgb(102, 59, 157)
HSLhsl(266, 45%, 42%)
HSVhsv(266, 62%, 62%)
CMYKcmyk(35%, 62.4%, 0%, 38.4%)
CIE-LABlab(34.78, 39.59, -46.55)
CIE-LCHlch(34.78, 61.11, 310.38°)
OKLaboklab(45.47% 0.0782 -0.1321)
OKLCHoklch(45.47% 0.154 300.6)
XYZxyz(13.1278, 8.3869, 32.8190)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663B9D #729D3B
analogous
#3B419D #663B9D #973B9D
triadic
#663B9D #9D663B #3B9D66
tetradic
#663B9D #9D3B41 #729D3B #3B9D97
square
#663B9D #9D3B41 #729D3B #3B9D97
split-complementary
#663B9D #9D973B #419D3B
monochromatic
#2C1A44 #492A71 #663B9D #8456BF #A482D0

Accessibility & contrast

On white

7.84
#663B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#663B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663B9D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663B9D#FFFFFF#000000##FFFFFF
##663B9D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#19519B
Tritanopia (blue-blind)
#5A5066
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663b9d;
/* rgb */ color: rgb(102, 59, 157);
/* oklch */ color: oklch(45.5% 0.154 300.6);
Tailwind
colors: {
  custom: {
    50: '#9673bb',
    500: '#663b9d',
    950: '#000000',
  },
}
SCSS
$custom: #663b9d;
$custom-light: #9673bb;
$custom-dark: #000000;
JSON
{
  "hex": "#663b9d",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 157
  },
  "hsl": {
    "h": 266.327,
    "s": 45.37,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45472,
    "c": 0.15356,
    "h": 300.6
  },
  "luminance": 0.08387
}

Semantic roles & 50–950 ramp

primary
#663B9D
secondary
#9EBA7A
accent
#D5539C
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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