#663286#663286

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

Color values

HEX#663286
RGBrgb(102, 50, 134)
HSLhsl(277, 46%, 36%)
HSVhsv(277, 63%, 53%)
CMYKcmyk(23.9%, 62.7%, 0%, 47.5%)
CIE-LABlab(31.41, 38.73, -37.87)
CIE-LCHlch(31.41, 54.17, 315.64°)
OKLaboklab(42.53% 0.0905 -0.1066)
OKLCHoklch(42.53% 0.14 310.3)
XYZxyz(10.9224, 6.8274, 23.2921)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663286 #528632
analogous
#3C3286 #663286 #86327C
triadic
#663286 #866632 #328666
tetradic
#663286 #863C32 #528632 #327C86
square
#663286 #863C32 #528632 #327C86
split-complementary
#663286 #7C8632 #32863C
monochromatic
#22112D #442159 #663286 #8843B3 #A46BC8

Accessibility & contrast

On white

8.88
#663286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#663286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663286
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663286#FFFFFF#000000##FFFFFF
##6632861.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4889
Deuteranopia (green-blind)
#294B84
Tritanopia (blue-blind)
#624257
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #663286;
/* rgb */ color: rgb(102, 50, 134);
/* oklch */ color: oklch(42.5% 0.140 310.3);
Tailwind
colors: {
  custom: {
    50: '#946daa',
    500: '#663286',
    950: '#000000',
  },
}
SCSS
$custom: #663286;
$custom-light: #946daa;
$custom-dark: #000000;
JSON
{
  "hex": "#663286",
  "rgb": {
    "r": 102,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 277.143,
    "s": 45.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42534,
    "c": 0.13985,
    "h": 310.3
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#663286
secondary
#81AF64
accent
#D55284
background
#F9F6FA
surface
#F2ECF4
border
#CCC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #663286

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

Preview Lab → · Contrast checker → · Palette generator →

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