#663188#663188

#663188 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.144 H 309.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#663188
RGBrgb(102, 49, 136)
HSLhsl(277, 47%, 36%)
HSVhsv(277, 64%, 53%)
CMYKcmyk(25%, 64%, 0%, 46.7%)
CIE-LABlab(31.35, 39.74, -39.22)
CIE-LCHlch(31.35, 55.83, 315.38°)
OKLaboklab(42.53% 0.0918 -0.1106)
OKLCHoklch(42.53% 0.144 309.7)
XYZxyz(11.0209, 6.7992, 24.0196)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663188 #538831
analogous
#3B3188 #663188 #88317F
triadic
#663188 #886631 #318866
tetradic
#663188 #883B31 #538831 #317F88
square
#663188 #883B31 #538831 #317F88
split-complementary
#663188 #7F8831 #31883B
monochromatic
#23112E #44215B #663188 #8841B5 #A46AC9

Accessibility & contrast

On white

8.90
#663188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#663188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663188
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663188#FFFFFF#000000##FFFFFF
##6631881.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07478B
Deuteranopia (green-blind)
#264B86
Tritanopia (blue-blind)
#614258
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #663188;
/* rgb */ color: rgb(102, 49, 136);
/* oklch */ color: oklch(42.5% 0.144 309.7);
Tailwind
colors: {
  custom: {
    50: '#956cab',
    500: '#663188',
    950: '#000000',
  },
}
SCSS
$custom: #663188;
$custom-light: #956cab;
$custom-dark: #000000;
JSON
{
  "hex": "#663188",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 276.552,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42528,
    "c": 0.14368,
    "h": 309.7
  },
  "luminance": 0.06799
}

Semantic roles & 50–950 ramp

primary
#663188
secondary
#82B164
accent
#D75185
background
#F9F6FA
surface
#F2ECF4
border
#CCC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #663188

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

Preview Lab → · Contrast checker → · Palette generator →

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