#663FAF#663FAF

#663FAF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.170 H 295.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#663FAF
RGBrgb(102, 63, 175)
HSLhsl(261, 47%, 47%)
HSVhsv(261, 64%, 69%)
CMYKcmyk(41.7%, 64%, 0%, 31.4%)
CIE-LABlab(36.88, 42.22, -53.93)
CIE-LCHlch(36.88, 68.49, 308.05°)
OKLaboklab(47.41% 0.0722 -0.1538)
OKLCHoklch(47.41% 0.17 295.1)
XYZxyz(14.9928, 9.4746, 41.5880)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663FAF #88AF3F
analogous
#3F50AF #663FAF #9E3FAF
triadic
#663FAF #AF663F #3FAF66
tetradic
#663FAF #AF3F50 #88AF3F #3FAF9E
square
#663FAF #AF3F50 #88AF3F #3FAF9E
split-complementary
#663FAF #AF9E3F #50AF3F
monochromatic
#321F55 #4C2F82 #663FAF #8764C7 #AA91D7

Accessibility & contrast

On white

7.25
#663FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#663FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663FAF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663FAF#FFFFFF#000000##FFFFFF
##663FAF1.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#535971
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #663faf;
/* rgb */ color: rgb(102, 63, 175);
/* oklch */ color: oklch(47.4% 0.170 295.1);
Tailwind
colors: {
  custom: {
    50: '#9776c8',
    500: '#663faf',
    950: '#000000',
  },
}
SCSS
$custom: #663faf;
$custom-light: #9776c8;
$custom-dark: #000000;
JSON
{
  "hex": "#663faf",
  "rgb": {
    "r": 102,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 260.893,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47407,
    "c": 0.16996,
    "h": 295.1
  },
  "luminance": 0.09475
}

Semantic roles & 50–950 ramp

primary
#663FAF
secondary
#AEC387
accent
#D751A8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #663FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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