#663AB6#663AB6

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

Color values

HEX#663AB6
RGBrgb(102, 58, 182)
HSLhsl(261, 52%, 47%)
HSVhsv(261, 68%, 71%)
CMYKcmyk(44%, 68.1%, 0%, 28.6%)
CIE-LABlab(36.42, 46.84, -58.83)
CIE-LCHlch(36.42, 75.20, 308.52°)
OKLaboklab(47.24% 0.0768 -0.1682)
OKLCHoklch(47.24% 0.185 294.5)
XYZxyz(15.4338, 9.2279, 45.2149)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AB6 #8AB63A
analogous
#3A4CB6 #663AB6 #A43AB6
triadic
#663AB6 #B6663A #3AB666
tetradic
#663AB6 #B63A4C #8AB63A #3AB6A4
square
#663AB6 #B63A4C #8AB63A #3AB6A4
split-complementary
#663AB6 #B6A43A #4CB63A
monochromatic
#321C59 #4C2B88 #663AB6 #8761CD #AA8FDB

Accessibility & contrast

On white

7.38
#663AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#663AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AB6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AB6#FFFFFF#000000##FFFFFF
##663AB61.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#0054B3
Tritanopia (blue-blind)
#505873
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #663ab6;
/* rgb */ color: rgb(102, 58, 182);
/* oklch */ color: oklch(47.2% 0.185 294.5);
Tailwind
colors: {
  custom: {
    50: '#9873cd',
    500: '#663ab6',
    950: '#000000',
  },
}
SCSS
$custom: #663ab6;
$custom-light: #9873cd;
$custom-dark: #000000;
JSON
{
  "hex": "#663ab6",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 261.29,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4724,
    "c": 0.18493,
    "h": 294.5
  },
  "luminance": 0.09228
}

Semantic roles & 50–950 ramp

primary
#663AB6
secondary
#AFC686
accent
#DB4DA9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #663AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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