#663EBA#663EBA

#663EBA is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.1% C 0.185 H 293.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#663EBA
RGBrgb(102, 62, 186)
HSLhsl(259, 50%, 49%)
HSVhsv(259, 67%, 73%)
CMYKcmyk(45.2%, 66.7%, 0%, 27.1%)
CIE-LABlab(37.51, 45.80, -59.42)
CIE-LCHlch(37.51, 75.02, 307.62°)
OKLaboklab(48.12% 0.0721 -0.17)
OKLCHoklch(48.12% 0.185 293)
XYZxyz(16.0626, 9.8147, 47.4930)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663EBA #92BA3E
analogous
#3E54BA #663EBA #A43EBA
triadic
#663EBA #BA663E #3EBA66
tetradic
#663EBA #BA3E54 #92BA3E #3EBAA4
square
#663EBA #BA3E54 #92BA3E #3EBAA4
split-complementary
#663EBA #BAA43E #54BA3E
monochromatic
#341F5E #4D2F8C #663EBA #8968CD #AD96DC

Accessibility & contrast

On white

7.09
#663EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#663EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663EBA
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663EBA#FFFFFF#000000##FFFFFF
##663EBA1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#4E5C77
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #663eba;
/* rgb */ color: rgb(102, 62, 186);
/* oklch */ color: oklch(48.1% 0.185 293.0);
Tailwind
colors: {
  custom: {
    50: '#9876d0',
    500: '#663eba',
    950: '#000000',
  },
}
SCSS
$custom: #663eba;
$custom-light: #9876d0;
$custom-dark: #000000;
JSON
{
  "hex": "#663eba",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 259.355,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48118,
    "c": 0.18463,
    "h": 293
  },
  "luminance": 0.09815
}

Semantic roles & 50–950 ramp

primary
#663EBA
secondary
#B4C88C
accent
#DA4EAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #663EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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