#663BAB#663BAB

#663BAB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.5% C 0.171 H 296.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#663BAB
RGBrgb(102, 59, 171)
HSLhsl(263, 49%, 45%)
HSVhsv(263, 65%, 67%)
CMYKcmyk(40.4%, 65.5%, 0%, 32.9%)
CIE-LABlab(35.78, 43.33, -53.34)
CIE-LCHlch(35.78, 68.72, 309.08°)
OKLaboklab(46.51% 0.0771 -0.1521)
OKLCHoklch(46.51% 0.171 296.9)
XYZxyz(14.3922, 8.8927, 39.4784)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663BAB #80AB3B
analogous
#3B48AB #663BAB #9E3BAB
triadic
#663BAB #AB663B #3BAB66
tetradic
#663BAB #AB3B48 #80AB3B #3BAB9E
square
#663BAB #AB3B48 #80AB3B #3BAB9E
split-complementary
#663BAB #AB9E3B #48AB3B
monochromatic
#301C50 #4B2B7D #663BAB #855CC7 #A78AD7

Accessibility & contrast

On white

7.56
#663BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#663BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663BAB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663BAB#FFFFFF#000000##FFFFFF
##663BAB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#55556E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #663bab;
/* rgb */ color: rgb(102, 59, 171);
/* oklch */ color: oklch(46.5% 0.171 296.9);
Tailwind
colors: {
  custom: {
    50: '#9774c5',
    500: '#663bab',
    950: '#000000',
  },
}
SCSS
$custom: #663bab;
$custom-light: #9774c5;
$custom-dark: #000000;
JSON
{
  "hex": "#663bab",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 263.036,
    "s": 48.696,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46514,
    "c": 0.17054,
    "h": 296.9
  },
  "luminance": 0.08893
}

Semantic roles & 50–950 ramp

primary
#663BAB
secondary
#A8C181
accent
#D850A4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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