#663EA5#663EA5

#663EA5 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.159 H 297.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#663EA5
RGBrgb(102, 62, 165)
HSLhsl(263, 45%, 45%)
HSVhsv(263, 62%, 65%)
CMYKcmyk(38.2%, 62.4%, 0%, 35.3%)
CIE-LABlab(35.96, 40.05, -49.46)
CIE-LCHlch(35.96, 63.64, 309.00°)
OKLaboklab(46.51% 0.0741 -0.1407)
OKLCHoklch(46.51% 0.159 297.8)
XYZxyz(13.9919, 8.9864, 36.5874)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663EA5 #7DA53E
analogous
#3E4AA5 #663EA5 #9A3EA5
triadic
#663EA5 #A5663E #3EA566
tetradic
#663EA5 #A53E4A #7DA53E #3EA59A
square
#663EA5 #A53E4A #7DA53E #3EA59A
split-complementary
#663EA5 #A59A3E #4AA53E
monochromatic
#2F1D4C #4B2D79 #663EA5 #855EC2 #A78AD3

Accessibility & contrast

On white

7.51
#663EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #663EA5
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663EA5#FFFFFF#000000##FFFFFF
##663EA51.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#0E53A3
Tritanopia (blue-blind)
#57556B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #663ea5;
/* rgb */ color: rgb(102, 62, 165);
/* oklch */ color: oklch(46.5% 0.159 297.8);
Tailwind
colors: {
  custom: {
    50: '#9675c0',
    500: '#663ea5',
    950: '#000000',
  },
}
SCSS
$custom: #663ea5;
$custom-light: #9675c0;
$custom-dark: #000000;
JSON
{
  "hex": "#663ea5",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 263.301,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46509,
    "c": 0.15903,
    "h": 297.8
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#663EA5
secondary
#A6BE81
accent
#D553A2
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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