#663BA8#663BA8

#663BA8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.3% C 0.167 H 297.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#663BA8
RGBrgb(102, 59, 168)
HSLhsl(264, 48%, 45%)
HSVhsv(264, 65%, 66%)
CMYKcmyk(39.3%, 64.9%, 0%, 34.1%)
CIE-LABlab(35.56, 42.52, -51.91)
CIE-LCHlch(35.56, 67.10, 309.32°)
OKLaboklab(46.29% 0.0774 -0.1479)
OKLCHoklch(46.29% 0.167 297.6)
XYZxyz(14.1095, 8.7796, 37.9895)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663BA8 #7DA83B
analogous
#3B46A8 #663BA8 #9D3BA8
triadic
#663BA8 #A8663B #3BA866
tetradic
#663BA8 #A83B46 #7DA83B #3BA89D
square
#663BA8 #A83B46 #7DA83B #3BA89D
split-complementary
#663BA8 #A89D3B #46A83B
monochromatic
#2F1B4D #4B2B7B #663BA8 #855BC5 #A788D5

Accessibility & contrast

On white

7.62
#663BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#663BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663BA8
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663BA8#FFFFFF#000000##FFFFFF
##663BA81.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#56546C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #663ba8;
/* rgb */ color: rgb(102, 59, 168);
/* oklch */ color: oklch(46.3% 0.167 297.6);
Tailwind
colors: {
  custom: {
    50: '#9773c3',
    500: '#663ba8',
    950: '#000000',
  },
}
SCSS
$custom: #663ba8;
$custom-light: #9773c3;
$custom-dark: #000000;
JSON
{
  "hex": "#663ba8",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 168
  },
  "hsl": {
    "h": 263.67,
    "s": 48.018,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46286,
    "c": 0.16692,
    "h": 297.6
  },
  "luminance": 0.0878
}

Semantic roles & 50–950 ramp

primary
#663BA8
secondary
#A6C07F
accent
#D850A2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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