#663D99#663D99

#663D99 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.5% C 0.146 H 301.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#663D99
RGBrgb(102, 61, 153)
HSLhsl(267, 43%, 42%)
HSVhsv(267, 60%, 60%)
CMYKcmyk(33.3%, 60.1%, 0%, 40%)
CIE-LABlab(34.93, 37.42, -43.89)
CIE-LCHlch(34.93, 57.67, 310.45°)
OKLaboklab(45.5% 0.0758 -0.1243)
OKLCHoklch(45.5% 0.146 301.4)
XYZxyz(12.8966, 8.4621, 31.0847)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663D99 #70993D
analogous
#3D4299 #663D99 #943D99
triadic
#663D99 #99663D #3D9966
tetradic
#663D99 #993D42 #70993D #3D9994
square
#663D99 #993D42 #70993D #3D9994
split-complementary
#663D99 #99943D #42993D
monochromatic
#2C1A41 #492C6D #663D99 #8457BC #A483CE

Accessibility & contrast

On white

7.80
#663D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#663D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663D99
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663D99#FFFFFF#000000##FFFFFF
##663D991.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D529C
Deuteranopia (green-blind)
#225297
Tritanopia (blue-blind)
#5C5065
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663d99;
/* rgb */ color: rgb(102, 61, 153);
/* oklch */ color: oklch(45.5% 0.146 301.4);
Tailwind
colors: {
  custom: {
    50: '#9574b8',
    500: '#663d99',
    950: '#000000',
  },
}
SCSS
$custom: #663d99;
$custom-light: #9574b8;
$custom-dark: #000000;
JSON
{
  "hex": "#663d99",
  "rgb": {
    "r": 102,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 266.739,
    "s": 42.991,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45496,
    "c": 0.14561,
    "h": 301.4
  },
  "luminance": 0.08462
}

Semantic roles & 50–950 ramp

primary
#663D99
secondary
#9CB87A
accent
#D3559B
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #663D99

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

Preview Lab → · Contrast checker → · Palette generator →

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