#663186#663186

#663186 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.141 H 310.5°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#663186
RGBrgb(102, 49, 134)
HSLhsl(277, 46%, 36%)
HSVhsv(277, 63%, 53%)
CMYKcmyk(23.9%, 63.4%, 0%, 47.5%)
CIE-LABlab(31.21, 39.26, -38.19)
CIE-LCHlch(31.21, 54.77, 315.80°)
OKLaboklab(42.39% 0.0918 -0.1075)
OKLCHoklch(42.39% 0.141 310.5)
XYZxyz(10.8801, 6.7429, 23.2780)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663186 #518631
analogous
#3B3186 #663186 #86317B
triadic
#663186 #866631 #318666
tetradic
#663186 #863B31 #518631 #317B86
square
#663186 #863B31 #518631 #317B86
split-complementary
#663186 #7B8631 #31863B
monochromatic
#22102C #442159 #663186 #8841B3 #A469C8

Accessibility & contrast

On white

8.94
#663186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#663186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663186
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663186#FFFFFF#000000##FFFFFF
##6631861.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4789
Deuteranopia (green-blind)
#284A84
Tritanopia (blue-blind)
#624157
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #663186;
/* rgb */ color: rgb(102, 49, 134);
/* oklch */ color: oklch(42.4% 0.141 310.5);
Tailwind
colors: {
  custom: {
    50: '#946caa',
    500: '#663186',
    950: '#000000',
  },
}
SCSS
$custom: #663186;
$custom-light: #946caa;
$custom-dark: #000000;
JSON
{
  "hex": "#663186",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 134
  },
  "hsl": {
    "h": 277.412,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.14141,
    "h": 310.5
  },
  "luminance": 0.06743
}

Semantic roles & 50–950 ramp

primary
#663186
secondary
#80B063
accent
#D65284
background
#F9F6FA
surface
#F2ECF4
border
#CCC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #663186

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

Preview Lab → · Contrast checker → · Palette generator →

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