#663173#663173

#663173 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.2% C 0.120 H 319.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#663173
RGBrgb(102, 49, 115)
HSLhsl(288, 40%, 32%)
HSVhsv(288, 57%, 45%)
CMYKcmyk(11.3%, 57.4%, 0%, 54.9%)
CIE-LABlab(30.06, 34.91, -28.10)
CIE-LCHlch(30.06, 44.81, 321.16°)
OKLaboklab(41.17% 0.0911 -0.0781)
OKLCHoklch(41.17% 0.12 319.4)
XYZxyz(9.6719, 6.2596, 16.9151)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663173 #3E7331
analogous
#453173 #663173 #73315F
triadic
#663173 #736631 #317366
tetradic
#663173 #734531 #3E7331 #315F73
square
#663173 #734531 #3E7331 #315F73
split-complementary
#663173 #5F7331 #317345
monochromatic
#1A0C1D #401F48 #663173 #8C439E #AA62BC

Accessibility & contrast

On white

9.33
#663173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#663173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663173
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663173#FFFFFF#000000##FFFFFF
##6631731.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244375
Deuteranopia (green-blind)
#354971
Tritanopia (blue-blind)
#663B4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #663173;
/* rgb */ color: rgb(102, 49, 115);
/* oklch */ color: oklch(41.2% 0.120 319.4);
Tailwind
colors: {
  custom: {
    50: '#936c9b',
    500: '#663173',
    950: '#000000',
  },
}
SCSS
$custom: #663173;
$custom-light: #936c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#663173",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 288.182,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41174,
    "c": 0.12003,
    "h": 319.4
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#663173
secondary
#6AA45C
accent
#D0586F
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D070E
muted
#7E7A7E

Preview Lab

Preview with #663173

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

Preview Lab → · Contrast checker → · Palette generator →

#663173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva