#663DA2#663DA2

#663DA2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.1% C 0.157 H 298.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#663DA2
RGBrgb(102, 61, 162)
HSLhsl(264, 45%, 44%)
HSVhsv(264, 62%, 64%)
CMYKcmyk(37%, 62.3%, 0%, 36.5%)
CIE-LABlab(35.54, 39.80, -48.34)
CIE-LCHlch(35.54, 62.62, 309.47°)
OKLaboklab(46.14% 0.0755 -0.1374)
OKLCHoklch(46.14% 0.157 298.8)
XYZxyz(13.6682, 8.7707, 35.1482)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663DA2 #79A23D
analogous
#3D47A2 #663DA2 #983DA2
triadic
#663DA2 #A2663D #3DA266
tetradic
#663DA2 #A23D47 #79A23D #3DA298
square
#663DA2 #A23D47 #79A23D #3DA298
split-complementary
#663DA2 #A2983D #47A23D
monochromatic
#2E1C49 #4A2C76 #663DA2 #845BC1 #A687D2

Accessibility & contrast

On white

7.62
#663DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#663DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663DA2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663DA2#FFFFFF#000000##FFFFFF
##663DA21.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#1353A0
Tritanopia (blue-blind)
#58536A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #663da2;
/* rgb */ color: rgb(102, 61, 162);
/* oklch */ color: oklch(46.1% 0.157 298.8);
Tailwind
colors: {
  custom: {
    50: '#9675be',
    500: '#663da2',
    950: '#000000',
  },
}
SCSS
$custom: #663da2;
$custom-light: #9675be;
$custom-dark: #000000;
JSON
{
  "hex": "#663da2",
  "rgb": {
    "r": 102,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 264.356,
    "s": 45.291,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.15677,
    "h": 298.8
  },
  "luminance": 0.08771
}

Semantic roles & 50–950 ramp

primary
#663DA2
secondary
#A3BC7E
accent
#D553A0
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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