#663BAC#663BAC

#663BAC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.172 H 296.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#663BAC
RGBrgb(102, 59, 172)
HSLhsl(263, 49%, 45%)
HSVhsv(263, 66%, 67%)
CMYKcmyk(40.7%, 65.7%, 0%, 32.5%)
CIE-LABlab(35.85, 43.59, -53.82)
CIE-LCHlch(35.85, 69.26, 309.01°)
OKLaboklab(46.59% 0.077 -0.1535)
OKLCHoklch(46.59% 0.172 296.6)
XYZxyz(14.4879, 8.9310, 39.9823)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663BAC #81AC3B
analogous
#3B48AC #663BAC #9F3BAC
triadic
#663BAC #AC663B #3BAC66
tetradic
#663BAC #AC3B48 #81AC3B #3BAC9F
square
#663BAC #AC3B48 #81AC3B #3BAC9F
split-complementary
#663BAC #AC9F3B #48AC3B
monochromatic
#301C51 #4B2B7E #663BAC #855DC7 #A88AD7

Accessibility & contrast

On white

7.54
#663BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#663BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663BAC
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663BAC#FFFFFF#000000##FFFFFF
##663BAC1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#54556E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #663bac;
/* rgb */ color: rgb(102, 59, 172);
/* oklch */ color: oklch(46.6% 0.172 296.6);
Tailwind
colors: {
  custom: {
    50: '#9774c5',
    500: '#663bac',
    950: '#000000',
  },
}
SCSS
$custom: #663bac;
$custom-light: #9774c5;
$custom-dark: #000000;
JSON
{
  "hex": "#663bac",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 172
  },
  "hsl": {
    "h": 262.832,
    "s": 48.918,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46591,
    "c": 0.17174,
    "h": 296.6
  },
  "luminance": 0.08931
}

Semantic roles & 50–950 ramp

primary
#663BAC
secondary
#A9C181
accent
#D84FA4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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