#663196#663196

#663196 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.160 H 304.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#663196
RGBrgb(102, 49, 150)
HSLhsl(271, 51%, 39%)
HSVhsv(271, 67%, 59%)
CMYKcmyk(32%, 67.3%, 0%, 41.2%)
CIE-LABlab(32.31, 43.17, -46.28)
CIE-LCHlch(32.31, 63.28, 313.01°)
OKLaboklab(43.53% 0.0908 -0.1313)
OKLCHoklch(43.53% 0.16 304.7)
XYZxyz(12.0816, 7.2235, 29.6060)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663196 #619631
analogous
#343196 #663196 #963194
triadic
#663196 #966631 #319666
tetradic
#663196 #963431 #619631 #319496
square
#663196 #963431 #619631 #319496
split-complementary
#663196 #949631 #319634
monochromatic
#27133A #472268 #663196 #8543C1 #A371D1

Accessibility & contrast

On white

8.59
#663196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#663196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663196
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663196#FFFFFF#000000##FFFFFF
##6631961.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#114C94
Tritanopia (blue-blind)
#5D475F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #663196;
/* rgb */ color: rgb(102, 49, 150);
/* oklch */ color: oklch(43.5% 0.160 304.7);
Tailwind
colors: {
  custom: {
    50: '#966db5',
    500: '#663196',
    950: '#000000',
  },
}
SCSS
$custom: #663196;
$custom-light: #966db5;
$custom-dark: #000000;
JSON
{
  "hex": "#663196",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 271.485,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43533,
    "c": 0.15965,
    "h": 304.7
  },
  "luminance": 0.07223
}

Semantic roles & 50–950 ramp

primary
#663196
secondary
#8FB86A
accent
#DA4E90
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #663196

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

Preview Lab → · Contrast checker → · Palette generator →

#663196 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva