#663A9F#663A9F

#663A9F is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.5% C 0.157 H 300.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#663A9F
RGBrgb(102, 58, 159)
HSLhsl(266, 47%, 43%)
HSVhsv(266, 64%, 62%)
CMYKcmyk(35.8%, 63.5%, 0%, 37.6%)
CIE-LABlab(34.71, 40.67, -47.87)
CIE-LCHlch(34.71, 62.81, 310.36°)
OKLaboklab(45.47% 0.0793 -0.136)
OKLCHoklch(45.47% 0.157 300.3)
XYZxyz(13.2490, 8.3540, 33.7086)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663A9F #739F3A
analogous
#3A409F #663A9F #993A9F
triadic
#663A9F #9F663A #3A9F66
tetradic
#663A9F #9F3A40 #739F3A #3A9F99
square
#663A9F #9F3A40 #739F3A #3A9F99
split-complementary
#663A9F #9F993A #409F3A
monochromatic
#2C1945 #492A72 #663A9F #8455C1 #A582D1

Accessibility & contrast

On white

7.86
#663A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#663A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663A9F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663A9F#FFFFFF#000000##FFFFFF
##663A9F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#12519D
Tritanopia (blue-blind)
#5A5067
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663a9f;
/* rgb */ color: rgb(102, 58, 159);
/* oklch */ color: oklch(45.5% 0.157 300.3);
Tailwind
colors: {
  custom: {
    50: '#9673bc',
    500: '#663a9f',
    950: '#000000',
  },
}
SCSS
$custom: #663a9f;
$custom-light: #9673bc;
$custom-dark: #000000;
JSON
{
  "hex": "#663a9f",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 159
  },
  "hsl": {
    "h": 266.139,
    "s": 46.544,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45468,
    "c": 0.15744,
    "h": 300.3
  },
  "luminance": 0.08354
}

Semantic roles & 50–950 ramp

primary
#663A9F
secondary
#9FBB7A
accent
#D6529C
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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