#663A8D#663A8D

#663A8D is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.2% C 0.135 H 306.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#663A8D
RGBrgb(102, 58, 141)
HSLhsl(272, 42%, 39%)
HSVhsv(272, 59%, 55%)
CMYKcmyk(27.7%, 58.9%, 0%, 44.7%)
CIE-LABlab(33.51, 36.03, -38.84)
CIE-LCHlch(33.51, 52.98, 312.85°)
OKLaboklab(44.21% 0.0798 -0.1095)
OKLCHoklch(44.21% 0.135 306.1)
XYZxyz(11.7992, 7.7741, 26.0731)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663A8D #618D3A
analogous
#3C3A8D #663A8D #8D3A8B
triadic
#663A8D #8D663A #3A8D66
tetradic
#663A8D #8D3C3A #618D3A #3A8B8D
square
#663A8D #8D3C3A #618D3A #3A8B8D
split-complementary
#663A8D #8B8D3A #3A8D3C
monochromatic
#271636 #472862 #663A8D #854EB6 #A379C8

Accessibility & contrast

On white

8.22
#663A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#663A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663A8D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663A8D#FFFFFF#000000##FFFFFF
##663A8D1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4D90
Deuteranopia (green-blind)
#2B4F8B
Tritanopia (blue-blind)
#604A5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #663a8d;
/* rgb */ color: rgb(102, 58, 141);
/* oklch */ color: oklch(44.2% 0.135 306.1);
Tailwind
colors: {
  custom: {
    50: '#9472af',
    500: '#663a8d',
    950: '#000000',
  },
}
SCSS
$custom: #663a8d;
$custom-light: #9472af;
$custom-dark: #000000;
JSON
{
  "hex": "#663a8d",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 271.807,
    "s": 41.709,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44208,
    "c": 0.13547,
    "h": 306.1
  },
  "luminance": 0.07774
}

Semantic roles & 50–950 ramp

primary
#663A8D
secondary
#8FB171
accent
#D25690
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #663A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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