#663FBA#663FBA

#663FBA is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.3% C 0.183 H 292.8°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#663FBA
RGBrgb(102, 63, 186)
HSLhsl(259, 49%, 49%)
HSVhsv(259, 66%, 73%)
CMYKcmyk(45.2%, 66.1%, 0%, 27.1%)
CIE-LABlab(37.71, 45.26, -59.10)
CIE-LCHlch(37.71, 74.44, 307.44°)
OKLaboklab(48.26% 0.071 -0.169)
OKLCHoklch(48.26% 0.183 292.8)
XYZxyz(16.1175, 9.9245, 47.5113)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663FBA #93BA3F
analogous
#3F56BA #663FBA #A43FBA
triadic
#663FBA #BA663F #3FBA66
tetradic
#663FBA #BA3F56 #93BA3F #3FBAA4
square
#663FBA #BA3F56 #93BA3F #3FBAA4
split-complementary
#663FBA #BAA43F #56BA3F
monochromatic
#34205F #4D308C #663FBA #896ACC #AD97DC

Accessibility & contrast

On white

7.04
#663FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#663FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663FBA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663FBA#FFFFFF#000000##FFFFFF
##663FBA1.007.042.997.04
#FFFFFF7.041.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #663fba;
/* rgb */ color: rgb(102, 63, 186);
/* oklch */ color: oklch(48.3% 0.183 292.8);
Tailwind
colors: {
  custom: {
    50: '#9876d0',
    500: '#663fba',
    950: '#000000',
  },
}
SCSS
$custom: #663fba;
$custom-light: #9876d0;
$custom-dark: #000000;
JSON
{
  "hex": "#663fba",
  "rgb": {
    "r": 102,
    "g": 63,
    "b": 186
  },
  "hsl": {
    "h": 259.024,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48261,
    "c": 0.18336,
    "h": 292.8
  },
  "luminance": 0.09925
}

Semantic roles & 50–950 ramp

primary
#663FBA
secondary
#B5C88D
accent
#D94FAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #663FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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