#663F99#663F99

#663F99 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.8% C 0.143 H 300.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#663F99
RGBrgb(102, 63, 153)
HSLhsl(266, 42%, 42%)
HSVhsv(266, 59%, 60%)
CMYKcmyk(33.3%, 58.8%, 0%, 40%)
CIE-LABlab(35.36, 36.27, -43.19)
CIE-LCHlch(35.36, 56.40, 310.02°)
OKLaboklab(45.81% 0.0732 -0.1223)
OKLCHoklch(45.81% 0.143 300.9)
XYZxyz(13.0054, 8.6796, 31.1210)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663F99 #72993F
analogous
#3F4599 #663F99 #933F99
triadic
#663F99 #99663F #3F9966
tetradic
#663F99 #993F45 #72993F #3F9993
square
#663F99 #993F45 #72993F #3F9993
split-complementary
#663F99 #99933F #45993F
monochromatic
#2C1B42 #492D6E #663F99 #845ABB #A485CD

Accessibility & contrast

On white

7.68
#663F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#663F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663F99
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663F99#FFFFFF#000000##FFFFFF
##663F991.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15539C
Deuteranopia (green-blind)
#265397
Tritanopia (blue-blind)
#5C5166
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663f99;
/* rgb */ color: rgb(102, 63, 153);
/* oklch */ color: oklch(45.8% 0.143 300.9);
Tailwind
colors: {
  custom: {
    50: '#9576b8',
    500: '#663f99',
    950: '#000000',
  },
}
SCSS
$custom: #663f99;
$custom-light: #9576b8;
$custom-dark: #000000;
JSON
{
  "hex": "#663f99",
  "rgb": {
    "r": 102,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 266,
    "s": 41.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45813,
    "c": 0.14252,
    "h": 300.9
  },
  "luminance": 0.0868
}

Semantic roles & 50–950 ramp

primary
#663F99
secondary
#9EB77C
accent
#D1569C
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #663F99

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

Preview Lab → · Contrast checker → · Palette generator →

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