#663AC6#663AC6

#663AC6 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.204 H 291.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#663AC6
RGBrgb(102, 58, 198)
HSLhsl(259, 55%, 50%)
HSVhsv(259, 71%, 78%)
CMYKcmyk(48.5%, 70.7%, 0%, 22.4%)
CIE-LABlab(37.71, 51.20, -66.12)
CIE-LCHlch(37.71, 83.63, 307.75°)
OKLaboklab(48.56% 0.074 -0.1896)
OKLCHoklch(48.56% 0.204 291.3)
XYZxyz(17.1827, 9.9275, 54.4260)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AC6 #9AC63A
analogous
#3A54C6 #663AC6 #AC3AC6
triadic
#663AC6 #C6663A #3AC666
tetradic
#663AC6 #C63A54 #9AC63A #3AC6AC
square
#663AC6 #C63A54 #9AC63A #3AC6AC
split-complementary
#663AC6 #C6AC3A #54C63A
monochromatic
#351E68 #4D2C97 #663AC6 #8B69D4 #B099E1

Accessibility & contrast

On white

7.03
#663AC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#663AC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AC6
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AC6#FFFFFF#000000##FFFFFF
##663AC61.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0056C3
Tritanopia (blue-blind)
#475E7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #663ac6;
/* rgb */ color: rgb(102, 58, 198);
/* oklch */ color: oklch(48.6% 0.204 291.3);
Tailwind
colors: {
  custom: {
    50: '#9a74d8',
    500: '#663ac6',
    950: '#000000',
  },
}
SCSS
$custom: #663ac6;
$custom-light: #9a74d8;
$custom-dark: #000000;
JSON
{
  "hex": "#663ac6",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 198
  },
  "hsl": {
    "h": 258.857,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48564,
    "c": 0.20356,
    "h": 291.3
  },
  "luminance": 0.09928
}

Semantic roles & 50–950 ramp

primary
#663AC6
secondary
#BACD8F
accent
#DE49B0
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #663AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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