#663BB7#663BB7

#663BB7 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.185 H 294.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#663BB7
RGBrgb(102, 59, 183)
HSLhsl(261, 51%, 47%)
HSVhsv(261, 68%, 72%)
CMYKcmyk(44.3%, 67.8%, 0%, 28.2%)
CIE-LABlab(36.69, 46.58, -58.99)
CIE-LCHlch(36.69, 75.16, 308.30°)
OKLaboklab(47.46% 0.0756 -0.1687)
OKLCHoklch(47.46% 0.185 294.1)
XYZxyz(15.5884, 9.3712, 45.7781)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663BB7 #8CB73B
analogous
#3B4EB7 #663BB7 #A43BB7
triadic
#663BB7 #B7663B #3BB766
tetradic
#663BB7 #B73B4E #8CB73B #3BB7A4
square
#663BB7 #B73B4E #8CB73B #3BB7A4
split-complementary
#663BB7 #B7A43B #4EB73B
monochromatic
#321D5A #4C2C89 #663BB7 #8763CD #AB91DC

Accessibility & contrast

On white

7.31
#663BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#663BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663BB7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663BB7#FFFFFF#000000##FFFFFF
##663BB71.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#4F5974
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #663bb7;
/* rgb */ color: rgb(102, 59, 183);
/* oklch */ color: oklch(47.5% 0.185 294.1);
Tailwind
colors: {
  custom: {
    50: '#9874cd',
    500: '#663bb7',
    950: '#000000',
  },
}
SCSS
$custom: #663bb7;
$custom-light: #9874cd;
$custom-dark: #000000;
JSON
{
  "hex": "#663bb7",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 260.806,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47457,
    "c": 0.18485,
    "h": 294.1
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#663BB7
secondary
#B1C687
accent
#DB4DAA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #663BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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