#663EAC#663EAC

#663EAC is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.0% C 0.168 H 296.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#663EAC
RGBrgb(102, 62, 172)
HSLhsl(262, 47%, 46%)
HSVhsv(262, 64%, 67%)
CMYKcmyk(40.7%, 64%, 0%, 32.5%)
CIE-LABlab(36.46, 41.95, -52.84)
CIE-LCHlch(36.46, 67.47, 308.45°)
OKLaboklab(47.03% 0.0736 -0.1506)
OKLCHoklch(47.03% 0.168 296)
XYZxyz(14.6466, 9.2483, 40.0351)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663EAC #84AC3E
analogous
#3E4DAC #663EAC #9D3EAC
triadic
#663EAC #AC663E #3EAC66
tetradic
#663EAC #AC3E4D #84AC3E #3EAC9D
square
#663EAC #AC3E4D #84AC3E #3EAC9D
split-complementary
#663EAC #AC9D3E #4DAC3E
monochromatic
#311E52 #4B2E7F #663EAC #8661C6 #A88ED6

Accessibility & contrast

On white

7.37
#663EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#663EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663EAC
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663EAC#FFFFFF#000000##FFFFFF
##663EAC1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#54576F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #663eac;
/* rgb */ color: rgb(102, 62, 172);
/* oklch */ color: oklch(47.0% 0.168 296.0);
Tailwind
colors: {
  custom: {
    50: '#9775c5',
    500: '#663eac',
    950: '#000000',
  },
}
SCSS
$custom: #663eac;
$custom-light: #9775c5;
$custom-dark: #000000;
JSON
{
  "hex": "#663eac",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 172
  },
  "hsl": {
    "h": 261.818,
    "s": 47.009,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4703,
    "c": 0.16765,
    "h": 296
  },
  "luminance": 0.09249
}

Semantic roles & 50–950 ramp

primary
#663EAC
secondary
#ABC185
accent
#D751A6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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