#663C9D#663C9D

#663C9D is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.6% C 0.152 H 300.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#663C9D
RGBrgb(102, 60, 157)
HSLhsl(266, 45%, 43%)
HSVhsv(266, 62%, 62%)
CMYKcmyk(35%, 61.8%, 0%, 38.4%)
CIE-LABlab(34.98, 39.04, -46.22)
CIE-LCHlch(34.98, 60.50, 310.19°)
OKLaboklab(45.62% 0.077 -0.1311)
OKLCHoklch(45.62% 0.152 300.4)
XYZxyz(13.1797, 8.4907, 32.8363)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663C9D #739D3C
analogous
#3C439D #663C9D #963C9D
triadic
#663C9D #9D663C #3C9D66
tetradic
#663C9D #9D3C43 #739D3C #3C9D96
square
#663C9D #9D3C43 #739D3C #3C9D96
split-complementary
#663C9D #9D963C #439D3C
monochromatic
#2C1A44 #492B71 #663C9D #8457BF #A584D0

Accessibility & contrast

On white

7.78
#663C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#663C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663C9D
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663C9D#FFFFFF#000000##FFFFFF
##663C9D1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#1B529B
Tritanopia (blue-blind)
#5A5167
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663c9d;
/* rgb */ color: rgb(102, 60, 157);
/* oklch */ color: oklch(45.6% 0.152 300.4);
Tailwind
colors: {
  custom: {
    50: '#9574ba',
    500: '#663c9d',
    950: '#000000',
  },
}
SCSS
$custom: #663c9d;
$custom-light: #9574ba;
$custom-dark: #000000;
JSON
{
  "hex": "#663c9d",
  "rgb": {
    "r": 102,
    "g": 60,
    "b": 157
  },
  "hsl": {
    "h": 265.979,
    "s": 44.7,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45624,
    "c": 0.15207,
    "h": 300.4
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#663C9D
secondary
#9FBA7B
accent
#D4539D
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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