#663EB4#663EB4

#663EB4 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.177 H 294.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#663EB4
RGBrgb(102, 62, 180)
HSLhsl(260, 49%, 47%)
HSVhsv(260, 66%, 71%)
CMYKcmyk(43.3%, 65.6%, 0%, 29.4%)
CIE-LABlab(37.05, 44.14, -56.63)
CIE-LCHlch(37.05, 71.80, 307.94°)
OKLaboklab(47.65% 0.0728 -0.1618)
OKLCHoklch(47.65% 0.177 294.2)
XYZxyz(15.4381, 9.5649, 44.2040)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663EB4 #8CB43E
analogous
#3E51B4 #663EB4 #A13EB4
triadic
#663EB4 #B4663E #3EB466
tetradic
#663EB4 #B43E51 #8CB43E #3EB4A1
square
#663EB4 #B43E51 #8CB43E #3EB4A1
split-complementary
#663EB4 #B4A13E #51B43E
monochromatic
#321F59 #4C2E86 #663EB4 #8765CA #AB93DA

Accessibility & contrast

On white

7.21
#663EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#663EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663EB4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663EB4#FFFFFF#000000##FFFFFF
##663EB41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#515A73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #663eb4;
/* rgb */ color: rgb(102, 62, 180);
/* oklch */ color: oklch(47.6% 0.177 294.2);
Tailwind
colors: {
  custom: {
    50: '#9876cb',
    500: '#663eb4',
    950: '#000000',
  },
}
SCSS
$custom: #663eb4;
$custom-light: #9876cb;
$custom-dark: #000000;
JSON
{
  "hex": "#663eb4",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 260.339,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47645,
    "c": 0.1774,
    "h": 294.2
  },
  "luminance": 0.09565
}

Semantic roles & 50–950 ramp

primary
#663EB4
secondary
#B1C589
accent
#D84FAA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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