#663A9B#663A9B

#663A9B is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.2% C 0.153 H 301.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#663A9B
RGBrgb(102, 58, 155)
HSLhsl(267, 46%, 42%)
HSVhsv(267, 63%, 61%)
CMYKcmyk(34.2%, 62.6%, 0%, 39.2%)
CIE-LABlab(34.43, 39.63, -45.90)
CIE-LCHlch(34.43, 60.64, 310.81°)
OKLaboklab(45.18% 0.0796 -0.1302)
OKLCHoklch(45.18% 0.153 301.4)
XYZxyz(12.9075, 8.2174, 31.9101)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663A9B #6F9B3A
analogous
#3A3F9B #663A9B #973A9B
triadic
#663A9B #9B663A #3A9B66
tetradic
#663A9B #9B3A3F #6F9B3A #3A9B97
square
#663A9B #9B3A3F #6F9B3A #3A9B97
split-complementary
#663A9B #9B973A #3F9B3A
monochromatic
#2B1942 #49296E #663A9B #8453BF #A480CF

Accessibility & contrast

On white

7.94
#663A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#663A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663A9B
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663A9B#FFFFFF#000000##FFFFFF
##663A9B1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#1A5099
Tritanopia (blue-blind)
#5B4F65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #663a9b;
/* rgb */ color: rgb(102, 58, 155);
/* oklch */ color: oklch(45.2% 0.153 301.4);
Tailwind
colors: {
  custom: {
    50: '#9572b9',
    500: '#663a9b',
    950: '#000000',
  },
}
SCSS
$custom: #663a9b;
$custom-light: #9572b9;
$custom-dark: #000000;
JSON
{
  "hex": "#663a9b",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 267.216,
    "s": 45.54,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45178,
    "c": 0.15259,
    "h": 301.4
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

primary
#663A9B
secondary
#9BB978
accent
#D5539A
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #663A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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