#663170#663170

#663170 is a dark, moderate purple. Relative luminance 0.062; OKLCH L 41.0% C 0.117 H 321.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#663170
RGBrgb(102, 49, 112)
HSLhsl(290, 39%, 32%)
HSVhsv(290, 56%, 44%)
CMYKcmyk(8.9%, 56.3%, 0%, 56.1%)
CIE-LABlab(29.89, 34.25, -26.46)
CIE-LCHlch(29.89, 43.28, 322.31°)
OKLaboklab(41% 0.0908 -0.0734)
OKLCHoklch(41% 0.117 321.1)
XYZxyz(9.5021, 6.1917, 16.0207)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663170 #3B7031
analogous
#473170 #663170 #70315B
triadic
#663170 #706631 #317066
tetradic
#663170 #704731 #3B7031 #315B70
square
#663170 #704731 #3B7031 #315B70
split-complementary
#663170 #5B7031 #317047
monochromatic
#180C1B #3F1E45 #663170 #8D449B #AC61BA

Accessibility & contrast

On white

9.38
#663170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#663170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663170
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663170#FFFFFF#000000##FFFFFF
##6631701.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264372
Deuteranopia (green-blind)
#37486E
Tritanopia (blue-blind)
#673A4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #663170;
/* rgb */ color: rgb(102, 49, 112);
/* oklch */ color: oklch(41.0% 0.117 321.1);
Tailwind
colors: {
  custom: {
    50: '#936c99',
    500: '#663170',
    950: '#000000',
  },
}
SCSS
$custom: #663170;
$custom-light: #936c99;
$custom-dark: #000000;
JSON
{
  "hex": "#663170",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 290.476,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40997,
    "c": 0.11674,
    "h": 321.1
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#663170
secondary
#67A15C
accent
#CF596C
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D070E
muted
#7E7A7E

Preview Lab

Preview with #663170

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

Preview Lab → · Contrast checker → · Palette generator →

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