#663AA3#663AA3

#663AA3 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.162 H 299.1°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#663AA3
RGBrgb(102, 58, 163)
HSLhsl(265, 48%, 43%)
HSVhsv(265, 64%, 64%)
CMYKcmyk(37.4%, 64.4%, 0%, 36.1%)
CIE-LABlab(34.99, 41.73, -49.82)
CIE-LCHlch(34.99, 64.99, 309.95°)
OKLaboklab(45.76% 0.079 -0.1417)
OKLCHoklch(45.76% 0.162 299.1)
XYZxyz(13.6018, 8.4951, 35.5663)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AA3 #77A33A
analogous
#3A42A3 #663AA3 #9A3AA3
triadic
#663AA3 #A3663A #3AA366
tetradic
#663AA3 #A33A42 #77A33A #3AA39A
square
#663AA3 #A33A42 #77A33A #3AA39A
split-complementary
#663AA3 #A39A3A #42A33A
monochromatic
#2E1A49 #4A2A76 #663AA3 #8457C3 #A584D3

Accessibility & contrast

On white

7.78
#663AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#663AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AA3
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AA3#FFFFFF#000000##FFFFFF
##663AA31.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#0651A1
Tritanopia (blue-blind)
#585169
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663aa3;
/* rgb */ color: rgb(102, 58, 163);
/* oklch */ color: oklch(45.8% 0.162 299.1);
Tailwind
colors: {
  custom: {
    50: '#9673bf',
    500: '#663aa3',
    950: '#000000',
  },
}
SCSS
$custom: #663aa3;
$custom-light: #9673bf;
$custom-dark: #000000;
JSON
{
  "hex": "#663aa3",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 163
  },
  "hsl": {
    "h": 265.143,
    "s": 47.511,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45764,
    "c": 0.16228,
    "h": 299.1
  },
  "luminance": 0.08495
}

Semantic roles & 50–950 ramp

primary
#663AA3
secondary
#A2BD7C
accent
#D7519F
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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