#663B97#663B97

#663B97 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.0% C 0.146 H 302.4°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#663B97
RGBrgb(102, 59, 151)
HSLhsl(268, 44%, 41%)
HSVhsv(268, 61%, 59%)
CMYKcmyk(32.5%, 60.9%, 0%, 40.8%)
CIE-LABlab(34.37, 38.02, -43.57)
CIE-LCHlch(34.37, 57.83, 311.11°)
OKLaboklab(45.05% 0.0784 -0.1234)
OKLCHoklch(45.05% 0.146 302.4)
XYZxyz(12.6281, 8.1871, 30.1871)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663B97 #6C973B
analogous
#3B3E97 #663B97 #943B97
triadic
#663B97 #97663B #3B9766
tetradic
#663B97 #973B3E #6C973B #3B9794
square
#663B97 #973B3E #6C973B #3B9794
split-complementary
#663B97 #97943B #3E973B
monochromatic
#2B193F #482A6B #663B97 #8453BC #A47FCD

Accessibility & contrast

On white

7.96
#663B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#663B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663B97
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663B97#FFFFFF#000000##FFFFFF
##663B971.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09509A
Deuteranopia (green-blind)
#225195
Tritanopia (blue-blind)
#5C4E63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #663b97;
/* rgb */ color: rgb(102, 59, 151);
/* oklch */ color: oklch(45.0% 0.146 302.4);
Tailwind
colors: {
  custom: {
    50: '#9573b6',
    500: '#663b97',
    950: '#000000',
  },
}
SCSS
$custom: #663b97;
$custom-light: #9573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#663b97",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 268.043,
    "s": 43.81,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45046,
    "c": 0.14619,
    "h": 302.4
  },
  "luminance": 0.08187
}

Semantic roles & 50–950 ramp

primary
#663B97
secondary
#99B777
accent
#D45498
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #663B97

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

Preview Lab → · Contrast checker → · Palette generator →

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