#663DAF#663DAF

#663DAF is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.173 H 295.5°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#663DAF
RGBrgb(102, 61, 175)
HSLhsl(262, 48%, 46%)
HSVhsv(262, 65%, 69%)
CMYKcmyk(41.7%, 65.1%, 0%, 31.4%)
CIE-LABlab(36.47, 43.32, -54.59)
CIE-LCHlch(36.47, 69.69, 308.43°)
OKLaboklab(47.11% 0.0745 -0.1558)
OKLCHoklch(47.11% 0.173 295.5)
XYZxyz(14.8841, 9.2571, 41.5517)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663DAF #86AF3D
analogous
#3D4DAF #663DAF #9F3DAF
triadic
#663DAF #AF663D #3DAF66
tetradic
#663DAF #AF3D4D #86AF3D #3DAF9F
square
#663DAF #AF3D4D #86AF3D #3DAF9F
split-complementary
#663DAF #AF9F3D #4DAF3D
monochromatic
#311D54 #4C2D82 #663DAF #8661C8 #A98FD8

Accessibility & contrast

On white

7.36
#663DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#663DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663DAF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663DAF#FFFFFF#000000##FFFFFF
##663DAF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#535770
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #663daf;
/* rgb */ color: rgb(102, 61, 175);
/* oklch */ color: oklch(47.1% 0.173 295.5);
Tailwind
colors: {
  custom: {
    50: '#9775c8',
    500: '#663daf',
    950: '#000000',
  },
}
SCSS
$custom: #663daf;
$custom-light: #9775c8;
$custom-dark: #000000;
JSON
{
  "hex": "#663daf",
  "rgb": {
    "r": 102,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 261.579,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47112,
    "c": 0.17267,
    "h": 295.5
  },
  "luminance": 0.09257
}

Semantic roles & 50–950 ramp

primary
#663DAF
secondary
#ADC385
accent
#D850A7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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