#663F97#663F97

#663F97 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.7% C 0.140 H 301.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#663F97
RGBrgb(102, 63, 151)
HSLhsl(267, 41%, 42%)
HSVhsv(267, 58%, 59%)
CMYKcmyk(32.5%, 58.3%, 0%, 40.8%)
CIE-LABlab(35.23, 35.74, -42.19)
CIE-LCHlch(35.23, 55.29, 310.27°)
OKLaboklab(45.68% 0.0732 -0.1193)
OKLCHoklch(45.68% 0.14 301.5)
XYZxyz(12.8416, 8.6141, 30.2583)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663F97 #70973F
analogous
#3F4497 #663F97 #923F97
triadic
#663F97 #97663F #3F9766
tetradic
#663F97 #973F44 #70973F #3F9792
square
#663F97 #973F44 #70973F #3F9792
split-complementary
#663F97 #97923F #44973F
monochromatic
#2C1B41 #492D6C #663F97 #8459BA #A485CC

Accessibility & contrast

On white

7.71
#663F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#663F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663F97
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663F97#FFFFFF#000000##FFFFFF
##663F971.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18529A
Deuteranopia (green-blind)
#285295
Tritanopia (blue-blind)
#5C5165
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663f97;
/* rgb */ color: rgb(102, 63, 151);
/* oklch */ color: oklch(45.7% 0.140 301.5);
Tailwind
colors: {
  custom: {
    50: '#9576b6',
    500: '#663f97',
    950: '#000000',
  },
}
SCSS
$custom: #663f97;
$custom-light: #9576b6;
$custom-dark: #000000;
JSON
{
  "hex": "#663f97",
  "rgb": {
    "r": 102,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 266.591,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45676,
    "c": 0.13999,
    "h": 301.5
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#663F97
secondary
#9CB67C
accent
#D1579B
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #663F97

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

Preview Lab → · Contrast checker → · Palette generator →

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