#663E8B#663E8B

#663E8B is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.7% C 0.126 H 305.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#663E8B
RGBrgb(102, 62, 139)
HSLhsl(271, 38%, 39%)
HSVhsv(271, 55%, 55%)
CMYKcmyk(26.6%, 55.4%, 0%, 45.5%)
CIE-LABlab(34.26, 33.22, -36.41)
CIE-LCHlch(34.26, 49.29, 312.38°)
OKLaboklab(44.72% 0.0741 -0.1024)
OKLCHoklch(44.72% 0.126 305.9)
XYZxyz(11.8613, 8.1342, 25.3663)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663E8B #638B3E
analogous
#403E8B #663E8B #8B3E8A
triadic
#663E8B #8B663E #3E8B66
tetradic
#663E8B #8B403E #638B3E #3E8A8B
square
#663E8B #8B403E #638B3E #3E8A8B
split-complementary
#663E8B #8A8B3E #3E8B40
monochromatic
#281836 #472B61 #663E8B #8554B3 #A37EC5

Accessibility & contrast

On white

7.99
#663E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#663E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663E8B
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663E8B#FFFFFF#000000##FFFFFF
##663E8B1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#604C5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #663e8b;
/* rgb */ color: rgb(102, 62, 139);
/* oklch */ color: oklch(44.7% 0.126 305.9);
Tailwind
colors: {
  custom: {
    50: '#9475ad',
    500: '#663e8b',
    950: '#000000',
  },
}
SCSS
$custom: #663e8b;
$custom-light: #9475ad;
$custom-dark: #000000;
JSON
{
  "hex": "#663e8b",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 271.169,
    "s": 38.308,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44722,
    "c": 0.12641,
    "h": 305.9
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

primary
#663E8B
secondary
#91B075
accent
#CE5A92
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #663E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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