#663187#663187

#663187 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.143 H 310.1°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#663187
RGBrgb(102, 49, 135)
HSLhsl(277, 47%, 36%)
HSVhsv(277, 64%, 53%)
CMYKcmyk(24.4%, 63.7%, 0%, 47.1%)
CIE-LABlab(31.28, 39.50, -38.70)
CIE-LCHlch(31.28, 55.30, 315.59°)
OKLaboklab(42.46% 0.0918 -0.109)
OKLCHoklch(42.46% 0.143 310.1)
XYZxyz(10.9501, 6.7709, 23.6470)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663187 #528731
analogous
#3B3187 #663187 #87317D
triadic
#663187 #876631 #318766
tetradic
#663187 #873B31 #528731 #317D87
square
#663187 #873B31 #528731 #317D87
split-complementary
#663187 #7D8731 #31873B
monochromatic
#22102D #44215A #663187 #8841B4 #A46AC9

Accessibility & contrast

On white

8.92
#663187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#663187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663187
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663187#FFFFFF#000000##FFFFFF
##6631871.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A478A
Deuteranopia (green-blind)
#274A85
Tritanopia (blue-blind)
#624257
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #663187;
/* rgb */ color: rgb(102, 49, 135);
/* oklch */ color: oklch(42.5% 0.143 310.1);
Tailwind
colors: {
  custom: {
    50: '#946caa',
    500: '#663187',
    950: '#000000',
  },
}
SCSS
$custom: #663187;
$custom-light: #946caa;
$custom-dark: #000000;
JSON
{
  "hex": "#663187",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 276.977,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4246,
    "c": 0.14254,
    "h": 310.1
  },
  "luminance": 0.06771
}

Semantic roles & 50–950 ramp

primary
#663187
secondary
#81B064
accent
#D65184
background
#F9F6FA
surface
#F2ECF4
border
#CCC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #663187

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

Preview Lab → · Contrast checker → · Palette generator →

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