#663BA6#663BA6

#663BA6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.1% C 0.165 H 298.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#663BA6
RGBrgb(102, 59, 166)
HSLhsl(264, 48%, 44%)
HSVhsv(264, 64%, 65%)
CMYKcmyk(38.6%, 64.5%, 0%, 34.9%)
CIE-LABlab(35.41, 41.98, -50.94)
CIE-LCHlch(35.41, 66.01, 309.49°)
OKLaboklab(46.14% 0.0776 -0.1451)
OKLCHoklch(46.14% 0.165 298.1)
XYZxyz(13.9247, 8.7057, 37.0157)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663BA6 #7BA63B
analogous
#3B46A6 #663BA6 #9C3BA6
triadic
#663BA6 #A6663B #3BA666
tetradic
#663BA6 #A63B46 #7BA63B #3BA69C
square
#663BA6 #A63B46 #7BA63B #3BA69C
split-complementary
#663BA6 #A69C3B #46A63B
monochromatic
#2F1B4C #4A2B79 #663BA6 #855AC4 #A687D4

Accessibility & contrast

On white

7.66
#663BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#663BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663BA6
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663BA6#FFFFFF#000000##FFFFFF
##663BA61.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#57536B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663ba6;
/* rgb */ color: rgb(102, 59, 166);
/* oklch */ color: oklch(46.1% 0.165 298.1);
Tailwind
colors: {
  custom: {
    50: '#9673c1',
    500: '#663ba6',
    950: '#000000',
  },
}
SCSS
$custom: #663ba6;
$custom-light: #9673c1;
$custom-dark: #000000;
JSON
{
  "hex": "#663ba6",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 264.112,
    "s": 47.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46135,
    "c": 0.1645,
    "h": 298.1
  },
  "luminance": 0.08706
}

Semantic roles & 50–950 ramp

primary
#663BA6
secondary
#A5BF7E
accent
#D751A1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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