#663182#663182

#663182 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.137 H 312.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#663182
RGBrgb(102, 49, 130)
HSLhsl(279, 45%, 35%)
HSVhsv(279, 62%, 51%)
CMYKcmyk(21.5%, 62.3%, 0%, 49%)
CIE-LABlab(30.96, 38.32, -36.11)
CIE-LCHlch(30.96, 52.65, 316.70°)
OKLaboklab(42.12% 0.0919 -0.1014)
OKLCHoklch(42.12% 0.137 312.2)
XYZxyz(10.6063, 6.6334, 21.8364)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663182 #4D8231
analogous
#3D3182 #663182 #823175
triadic
#663182 #826631 #318266
tetradic
#663182 #823D31 #4D8231 #317582
square
#663182 #823D31 #4D8231 #317582
split-complementary
#663182 #758231 #31823D
monochromatic
#200F29 #432056 #663182 #8942AE #A568C6

Accessibility & contrast

On white

9.03
#663182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#663182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663182
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663182#FFFFFF#000000##FFFFFF
##6631821.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144685
Deuteranopia (green-blind)
#2B4A80
Tritanopia (blue-blind)
#634054
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #663182;
/* rgb */ color: rgb(102, 49, 130);
/* oklch */ color: oklch(42.1% 0.137 312.2);
Tailwind
colors: {
  custom: {
    50: '#946ca7',
    500: '#663182',
    950: '#000000',
  },
}
SCSS
$custom: #663182;
$custom-light: #946ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#663182",
  "rgb": {
    "r": 102,
    "g": 49,
    "b": 130
  },
  "hsl": {
    "h": 279.259,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42122,
    "c": 0.13685,
    "h": 312.2
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#663182
secondary
#7CAD62
accent
#D55380
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #663182

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

Preview Lab → · Contrast checker → · Palette generator →

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