#663AAB#663AAB

#663AAB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.172 H 297.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#663AAB
RGBrgb(102, 58, 171)
HSLhsl(263, 49%, 45%)
HSVhsv(263, 66%, 67%)
CMYKcmyk(40.4%, 66.1%, 0%, 32.9%)
CIE-LABlab(35.58, 43.87, -53.67)
CIE-LCHlch(35.58, 69.31, 309.26°)
OKLaboklab(46.37% 0.0782 -0.153)
OKLCHoklch(46.37% 0.172 297.1)
XYZxyz(14.3413, 8.7909, 39.4614)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AAB #7FAB3A
analogous
#3A46AB #663AAB #9F3AAB
triadic
#663AAB #AB663A #3AAB66
tetradic
#663AAB #AB3A46 #7FAB3A #3AAB9F
square
#663AAB #AB3A46 #7FAB3A #3AAB9F
split-complementary
#663AAB #AB9F3A #46AB3A
monochromatic
#2F1B50 #4B2A7D #663AAB #855BC7 #A789D7

Accessibility & contrast

On white

7.61
#663AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#663AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AAB
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AAB#FFFFFF#000000##FFFFFF
##663AAB1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#55546D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #663aab;
/* rgb */ color: rgb(102, 58, 171);
/* oklch */ color: oklch(46.4% 0.172 297.1);
Tailwind
colors: {
  custom: {
    50: '#9773c5',
    500: '#663aab',
    950: '#000000',
  },
}
SCSS
$custom: #663aab;
$custom-light: #9773c5;
$custom-dark: #000000;
JSON
{
  "hex": "#663aab",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 263.363,
    "s": 49.345,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46371,
    "c": 0.17189,
    "h": 297.1
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#663AAB
secondary
#A8C180
accent
#D94FA3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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