#663D8D#663D8D

#663D8D is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.7% C 0.131 H 305.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#663D8D
RGBrgb(102, 61, 141)
HSLhsl(271, 40%, 40%)
HSVhsv(271, 57%, 55%)
CMYKcmyk(27.7%, 56.7%, 0%, 44.7%)
CIE-LABlab(34.16, 34.31, -37.80)
CIE-LCHlch(34.16, 51.05, 312.23°)
OKLaboklab(44.69% 0.0757 -0.1064)
OKLCHoklch(44.69% 0.131 305.4)
XYZxyz(11.9549, 8.0854, 26.1250)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663D8D #648D3D
analogous
#3E3D8D #663D8D #8D3D8C
triadic
#663D8D #8D663D #3D8D66
tetradic
#663D8D #8D3E3D #648D3D #3D8C8D
square
#663D8D #8D3E3D #648D3D #3D8C8D
split-complementary
#663D8D #8C8D3D #3D8D3E
monochromatic
#281838 #472B62 #663D8D #8553B4 #A37DC7

Accessibility & contrast

On white

8.02
#663D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#663D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663D8D
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663D8D#FFFFFF#000000##FFFFFF
##663D8D1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F90
Deuteranopia (green-blind)
#2F508B
Tritanopia (blue-blind)
#5F4C5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #663d8d;
/* rgb */ color: rgb(102, 61, 141);
/* oklch */ color: oklch(44.7% 0.131 305.4);
Tailwind
colors: {
  custom: {
    50: '#9474af',
    500: '#663d8d',
    950: '#000000',
  },
}
SCSS
$custom: #663d8d;
$custom-light: #9474af;
$custom-dark: #000000;
JSON
{
  "hex": "#663d8d",
  "rgb": {
    "r": 102,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 270.75,
    "s": 39.604,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44687,
    "c": 0.13059,
    "h": 305.4
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#663D8D
secondary
#92B175
accent
#CF5892
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #663D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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