#663E8A#663E8A

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

Color values

HEX#663E8A
RGBrgb(102, 62, 138)
HSLhsl(272, 38%, 39%)
HSVhsv(272, 55%, 54%)
CMYKcmyk(26.1%, 55.1%, 0%, 45.9%)
CIE-LABlab(34.20, 32.97, -35.89)
CIE-LCHlch(34.20, 48.73, 312.57°)
OKLaboklab(44.66% 0.0741 -0.1009)
OKLCHoklch(44.66% 0.125 306.3)
XYZxyz(11.7886, 8.1051, 24.9832)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663E8A #628A3E
analogous
#403E8A #663E8A #8A3E88
triadic
#663E8A #8A663E #3E8A66
tetradic
#663E8A #8A403E #628A3E #3E888A
square
#663E8A #8A403E #628A3E #3E888A
split-complementary
#663E8A #888A3E #3E8A40
monochromatic
#281836 #472B60 #663E8A #8553B2 #A37EC5

Accessibility & contrast

On white

8.01
#663E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #663E8A
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663E8A#FFFFFF#000000##FFFFFF
##663E8A1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8D
Deuteranopia (green-blind)
#325188
Tritanopia (blue-blind)
#604C5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #663e8a;
/* rgb */ color: rgb(102, 62, 138);
/* oklch */ color: oklch(44.7% 0.125 306.3);
Tailwind
colors: {
  custom: {
    50: '#9475ac',
    500: '#663e8a',
    950: '#000000',
  },
}
SCSS
$custom: #663e8a;
$custom-light: #9475ac;
$custom-dark: #000000;
JSON
{
  "hex": "#663e8a",
  "rgb": {
    "r": 102,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 271.579,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44658,
    "c": 0.12515,
    "h": 306.3
  },
  "luminance": 0.08105
}

Semantic roles & 50–950 ramp

primary
#663E8A
secondary
#90AF75
accent
#CE5A91
background
#F9F7FA
surface
#F2EDF4
border
#CCC8CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #663E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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