#663BC7#663BC7

#663BC7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.8% C 0.204 H 291.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#663BC7
RGBrgb(102, 59, 199)
HSLhsl(258, 56%, 51%)
HSVhsv(258, 70%, 78%)
CMYKcmyk(48.7%, 70.4%, 0%, 22%)
CIE-LABlab(37.98, 50.97, -66.27)
CIE-LCHlch(37.98, 83.60, 307.56°)
OKLaboklab(48.78% 0.0729 -0.1901)
OKLCHoklch(48.78% 0.204 291)
XYZxyz(17.3493, 10.0756, 55.0524)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663BC7 #9CC73B
analogous
#3B56C7 #663BC7 #AC3BC7
triadic
#663BC7 #C7663B #3BC766
tetradic
#663BC7 #C73B56 #9CC73B #3BC7AC
square
#663BC7 #C73B56 #9CC73B #3BC7AC
split-complementary
#663BC7 #C7AC3B #56C73B
monochromatic
#351E69 #4D2C99 #663BC7 #8B6BD5 #B09AE2

Accessibility & contrast

On white

6.96
#663BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#663BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #663BC7
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663BC7#FFFFFF#000000##FFFFFF
##663BC71.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0056C4
Tritanopia (blue-blind)
#465F7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #663bc7;
/* rgb */ color: rgb(102, 59, 199);
/* oklch */ color: oklch(48.8% 0.204 291.0);
Tailwind
colors: {
  custom: {
    50: '#9a74d9',
    500: '#663bc7',
    950: '#000000',
  },
}
SCSS
$custom: #663bc7;
$custom-light: #9a74d9;
$custom-dark: #000000;
JSON
{
  "hex": "#663bc7",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 199
  },
  "hsl": {
    "h": 258.429,
    "s": 55.556,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48779,
    "c": 0.20357,
    "h": 291
  },
  "luminance": 0.10076
}

Semantic roles & 50–950 ramp

primary
#663BC7
secondary
#BBCE90
accent
#DF49B1
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #663BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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