#663D8A#663D8A

#663D8A is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.5% C 0.127 H 306.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#663D8A
RGBrgb(102, 61, 138)
HSLhsl(272, 39%, 39%)
HSVhsv(272, 56%, 54%)
CMYKcmyk(26.1%, 55.8%, 0%, 45.9%)
CIE-LABlab(33.98, 33.55, -36.24)
CIE-LCHlch(33.98, 49.39, 312.79°)
OKLaboklab(44.49% 0.0755 -0.1019)
OKLCHoklch(44.49% 0.127 306.5)
XYZxyz(11.7347, 7.9974, 24.9653)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663D8A #618A3D
analogous
#403D8A #663D8A #8A3D88
triadic
#663D8A #8A663D #3D8A66
tetradic
#663D8A #8A403D #618A3D #3D888A
square
#663D8A #8A403D #618A3D #3D888A
split-complementary
#663D8A #888A3D #3D8A40
monochromatic
#271735 #472A60 #663D8A #8552B2 #A37CC5

Accessibility & contrast

On white

8.08
#663D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#663D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663D8A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663D8A#FFFFFF#000000##FFFFFF
##663D8A1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244E8D
Deuteranopia (green-blind)
#315088
Tritanopia (blue-blind)
#604B5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #663d8a;
/* rgb */ color: rgb(102, 61, 138);
/* oklch */ color: oklch(44.5% 0.127 306.5);
Tailwind
colors: {
  custom: {
    50: '#9474ac',
    500: '#663d8a',
    950: '#000000',
  },
}
SCSS
$custom: #663d8a;
$custom-light: #9474ac;
$custom-dark: #000000;
JSON
{
  "hex": "#663d8a",
  "rgb": {
    "r": 102,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 271.948,
    "s": 38.693,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44493,
    "c": 0.12683,
    "h": 306.5
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#663D8A
secondary
#8FAF74
accent
#CF5990
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #663D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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