#663EA8#663EA8

#663EA8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.163 H 297.0°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#663EA8
RGBrgb(102, 62, 168)
HSLhsl(263, 46%, 45%)
HSVhsv(263, 63%, 66%)
CMYKcmyk(39.3%, 63.1%, 0%, 34.1%)
CIE-LABlab(36.17, 40.86, -50.91)
CIE-LCHlch(36.17, 65.28, 308.75°)
OKLaboklab(46.73% 0.0739 -0.145)
OKLCHoklch(46.73% 0.163 297)
XYZxyz(14.2682, 9.0969, 38.0423)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663EA8 #80A83E
analogous
#3E4BA8 #663EA8 #9B3EA8
triadic
#663EA8 #A8663E #3EA866
tetradic
#663EA8 #A83E4B #80A83E #3EA89B
square
#663EA8 #A83E4B #80A83E #3EA89B
split-complementary
#663EA8 #A89B3E #4BA83E
monochromatic
#301D4F #4B2E7B #663EA8 #855FC4 #A78CD5

Accessibility & contrast

On white

7.45
#663EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#663EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663EA8
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663EA8#FFFFFF#000000##FFFFFF
##663EA81.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#0354A6
Tritanopia (blue-blind)
#56566D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #663ea8;
/* rgb */ color: rgb(102, 62, 168);
/* oklch */ color: oklch(46.7% 0.163 297.0);
Tailwind
colors: {
  custom: {
    50: '#9675c3',
    500: '#663ea8',
    950: '#000000',
  },
}
SCSS
$custom: #663ea8;
$custom-light: #9675c3;
$custom-dark: #000000;
JSON
{
  "hex": "#663ea8",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 262.642,
    "s": 46.087,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4673,
    "c": 0.16273,
    "h": 297
  },
  "luminance": 0.09097
}

Semantic roles & 50–950 ramp

primary
#663EA8
secondary
#A8BF83
accent
#D652A4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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