#663D97#663D97

#663D97 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.4% C 0.143 H 302.0°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#663D97
RGBrgb(102, 61, 151)
HSLhsl(267, 42%, 42%)
HSVhsv(267, 60%, 59%)
CMYKcmyk(32.5%, 59.6%, 0%, 40.8%)
CIE-LABlab(34.80, 36.89, -42.88)
CIE-LCHlch(34.80, 56.57, 310.70°)
OKLaboklab(45.36% 0.0758 -0.1214)
OKLCHoklch(45.36% 0.143 302)
XYZxyz(12.7329, 8.3966, 30.2221)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663D97 #6E973D
analogous
#3D4197 #663D97 #933D97
triadic
#663D97 #97663D #3D9766
tetradic
#663D97 #973D41 #6E973D #3D9793
square
#663D97 #973D41 #6E973D #3D9793
split-complementary
#663D97 #97933D #41973D
monochromatic
#2B1A40 #492B6B #663D97 #8456BB #A482CC

Accessibility & contrast

On white

7.84
#663D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#663D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663D97
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663D97#FFFFFF#000000##FFFFFF
##663D971.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#255195
Tritanopia (blue-blind)
#5C4F64
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663d97;
/* rgb */ color: rgb(102, 61, 151);
/* oklch */ color: oklch(45.4% 0.143 302.0);
Tailwind
colors: {
  custom: {
    50: '#9574b6',
    500: '#663d97',
    950: '#000000',
  },
}
SCSS
$custom: #663d97;
$custom-light: #9574b6;
$custom-dark: #000000;
JSON
{
  "hex": "#663d97",
  "rgb": {
    "r": 102,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 267.333,
    "s": 42.453,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45357,
    "c": 0.14312,
    "h": 302
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

primary
#663D97
secondary
#9BB779
accent
#D25699
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #663D97

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

Preview Lab → · Contrast checker → · Palette generator →

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