#663A97#663A97

#663A97 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.9% C 0.148 H 302.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#663A97
RGBrgb(102, 58, 151)
HSLhsl(268, 44%, 41%)
HSVhsv(268, 62%, 59%)
CMYKcmyk(32.5%, 61.6%, 0%, 40.8%)
CIE-LABlab(34.16, 38.59, -43.90)
CIE-LCHlch(34.16, 58.45, 311.31°)
OKLaboklab(44.89% 0.0797 -0.1244)
OKLCHoklch(44.89% 0.148 302.7)
XYZxyz(12.5772, 8.0853, 30.1702)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663A97 #6B973A
analogous
#3A3C97 #663A97 #943A97
triadic
#663A97 #97663A #3A9766
tetradic
#663A97 #973A3C #6B973A #3A9794
square
#663A97 #973A3C #6B973A #3A9794
split-complementary
#663A97 #97943A #3C973A
monochromatic
#2A183F #48296B #663A97 #8452BC #A47ECD

Accessibility & contrast

On white

8.02
#663A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#663A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663A97
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663A97#FFFFFF#000000##FFFFFF
##663A971.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054F9A
Deuteranopia (green-blind)
#205095
Tritanopia (blue-blind)
#5D4D63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #663a97;
/* rgb */ color: rgb(102, 58, 151);
/* oklch */ color: oklch(44.9% 0.148 302.7);
Tailwind
colors: {
  custom: {
    50: '#9572b6',
    500: '#663a97',
    950: '#000000',
  },
}
SCSS
$custom: #663a97;
$custom-light: #9572b6;
$custom-dark: #000000;
JSON
{
  "hex": "#663a97",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 268.387,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44893,
    "c": 0.14771,
    "h": 302.7
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#663A97
secondary
#98B776
accent
#D45497
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #663A97

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

Preview Lab → · Contrast checker → · Palette generator →

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