#663AB5#663AB5

#663AB5 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.2% C 0.184 H 294.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#663AB5
RGBrgb(102, 58, 181)
HSLhsl(261, 51%, 47%)
HSVhsv(261, 68%, 71%)
CMYKcmyk(43.6%, 68%, 0%, 29%)
CIE-LABlab(36.34, 46.56, -58.37)
CIE-LCHlch(36.34, 74.67, 308.58°)
OKLaboklab(47.16% 0.0769 -0.1669)
OKLCHoklch(47.16% 0.184 294.7)
XYZxyz(15.3308, 9.1867, 44.6726)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AB5 #89B53A
analogous
#3A4CB5 #663AB5 #A33AB5
triadic
#663AB5 #B5663A #3AB566
tetradic
#663AB5 #B53A4C #89B53A #3AB5A3
square
#663AB5 #B53A4C #89B53A #3AB5A3
split-complementary
#663AB5 #B5A33A #4CB53A
monochromatic
#321C58 #4C2B87 #663AB5 #8760CC #AA8EDB

Accessibility & contrast

On white

7.40
#663AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#663AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AB5
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AB5#FFFFFF#000000##FFFFFF
##663AB51.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#505873
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #663ab5;
/* rgb */ color: rgb(102, 58, 181);
/* oklch */ color: oklch(47.2% 0.184 294.7);
Tailwind
colors: {
  custom: {
    50: '#9873cc',
    500: '#663ab5',
    950: '#000000',
  },
}
SCSS
$custom: #663ab5;
$custom-light: #9873cc;
$custom-dark: #000000;
JSON
{
  "hex": "#663ab5",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 181
  },
  "hsl": {
    "h": 261.463,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47159,
    "c": 0.18375,
    "h": 294.7
  },
  "luminance": 0.09187
}

Semantic roles & 50–950 ramp

primary
#663AB5
secondary
#AFC685
accent
#DB4DA8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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