#663DA8#663DA8

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

Color values

HEX#663DA8
RGBrgb(102, 61, 168)
HSLhsl(263, 47%, 45%)
HSVhsv(263, 64%, 66%)
CMYKcmyk(39.3%, 63.7%, 0%, 34.1%)
CIE-LABlab(35.96, 41.42, -51.25)
CIE-LCHlch(35.96, 65.89, 308.94°)
OKLaboklab(46.58% 0.0751 -0.1459)
OKLCHoklch(46.58% 0.164 297.2)
XYZxyz(14.2143, 8.9892, 38.0244)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663DA8 #7FA83D
analogous
#3D49A8 #663DA8 #9C3DA8
triadic
#663DA8 #A8663D #3DA866
tetradic
#663DA8 #A83D49 #7FA83D #3DA89C
square
#663DA8 #A83D49 #7FA83D #3DA89C
split-complementary
#663DA8 #A89C3D #49A83D
monochromatic
#2F1C4E #4B2D7B #663DA8 #855EC4 #A78BD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##663DA8#FFFFFF#000000##FFFFFF
##663DA81.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)
#0055AB
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#56556D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #663da8;
/* rgb */ color: rgb(102, 61, 168);
/* oklch */ color: oklch(46.6% 0.164 297.2);
Tailwind
colors: {
  custom: {
    50: '#9675c3',
    500: '#663da8',
    950: '#000000',
  },
}
SCSS
$custom: #663da8;
$custom-light: #9675c3;
$custom-dark: #000000;
JSON
{
  "hex": "#663da8",
  "rgb": {
    "r": 102,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 262.991,
    "s": 46.725,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.16414,
    "h": 297.2
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#663DA8
secondary
#A8BF81
accent
#D651A3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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