#663197#663197

#663197 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.161 H 304.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#663197
RGBrgb(102, 49, 151)
HSLhsl(271, 51%, 39%)
HSVhsv(271, 68%, 59%)
CMYKcmyk(32.5%, 67.5%, 0%, 40.8%)
CIE-LABlab(32.38, 43.42, -46.77)
CIE-LCHlch(32.38, 63.82, 312.87°)
OKLaboklab(43.61% 0.0907 -0.1327)
OKLCHoklch(43.61% 0.161 304.4)
XYZxyz(12.1625, 7.2558, 30.0319)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663197 #629731
analogous
#333197 #663197 #973195
triadic
#663197 #976631 #319766
tetradic
#663197 #973331 #629731 #319597
square
#663197 #973331 #629731 #319597
split-complementary
#663197 #959731 #319733
monochromatic
#28133B #472269 #663197 #8543C2 #A371D1

Accessibility & contrast

On white

8.57
#663197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#663197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663197
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663197#FFFFFF#000000##FFFFFF
##6631971.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#0F4C95
Tritanopia (blue-blind)
#5D4760
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #663197;
/* rgb */ color: rgb(102, 49, 151);
/* oklch */ color: oklch(43.6% 0.161 304.4);
Tailwind
colors: {
  custom: {
    50: '#966db6',
    500: '#663197',
    950: '#000000',
  },
}
SCSS
$custom: #663197;
$custom-light: #966db6;
$custom-dark: #000000;
JSON
{
  "hex": "#663197",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 271.176,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43607,
    "c": 0.16078,
    "h": 304.4
  },
  "luminance": 0.07256
}

Semantic roles & 50–950 ramp

primary
#663197
secondary
#90B96B
accent
#DA4D91
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #663197

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

Preview Lab → · Contrast checker → · Palette generator →

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