#663EA6#663EA6

#663EA6 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.6% C 0.160 H 297.5°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#663EA6
RGBrgb(102, 62, 166)
HSLhsl(263, 46%, 45%)
HSVhsv(263, 63%, 65%)
CMYKcmyk(38.6%, 62.7%, 0%, 34.9%)
CIE-LABlab(36.03, 40.32, -49.95)
CIE-LCHlch(36.03, 64.19, 308.91°)
OKLaboklab(46.58% 0.0741 -0.1421)
OKLCHoklch(46.58% 0.16 297.5)
XYZxyz(14.0833, 9.0230, 37.0686)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663EA6 #7EA63E
analogous
#3E4AA6 #663EA6 #9A3EA6
triadic
#663EA6 #A6663E #3EA666
tetradic
#663EA6 #A63E4A #7EA63E #3EA69A
square
#663EA6 #A63E4A #7EA63E #3EA69A
split-complementary
#663EA6 #A69A3E #4AA63E
monochromatic
#2F1D4D #4B2D79 #663EA6 #855EC3 #A78BD4

Accessibility & contrast

On white

7.49
#663EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#663EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663EA6
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663EA6#FFFFFF#000000##FFFFFF
##663EA61.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#0B54A4
Tritanopia (blue-blind)
#57556C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #663ea6;
/* rgb */ color: rgb(102, 62, 166);
/* oklch */ color: oklch(46.6% 0.160 297.5);
Tailwind
colors: {
  custom: {
    50: '#9675c1',
    500: '#663ea6',
    950: '#000000',
  },
}
SCSS
$custom: #663ea6;
$custom-light: #9675c1;
$custom-dark: #000000;
JSON
{
  "hex": "#663ea6",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 263.077,
    "s": 45.614,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46582,
    "c": 0.16026,
    "h": 297.5
  },
  "luminance": 0.09023
}

Semantic roles & 50–950 ramp

primary
#663EA6
secondary
#A7BE82
accent
#D553A3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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