#662DB1#662DB1

#662DB1 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.195 H 297.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#662DB1
RGBrgb(102, 45, 177)
HSLhsl(266, 59%, 44%)
HSVhsv(266, 75%, 69%)
CMYKcmyk(42.4%, 74.6%, 0%, 30.6%)
CIE-LABlab(33.72, 51.93, -60.26)
CIE-LCHlch(33.72, 79.55, 310.75°)
OKLaboklab(45.2% 0.0903 -0.1724)
OKLCHoklch(45.2% 0.195 297.6)
XYZxyz(14.3516, 7.8756, 42.3505)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB1 #78B12D
analogous
#2D36B1 #662DB1 #A82DB1
triadic
#662DB1 #B1662D #2DB166
tetradic
#662DB1 #B12D36 #78B12D #2DB1A8
square
#662DB1 #B12D36 #78B12D #2DB1A8
split-complementary
#662DB1 #B1A82D #36B12D
monochromatic
#2E144F #4A2180 #662DB1 #844AD1 #A57BDD

Accessibility & contrast

On white

8.15
#662DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#662DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB1
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB1#FFFFFF#000000##FFFFFF
##662DB11.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#534F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662db1;
/* rgb */ color: rgb(102, 45, 177);
/* oklch */ color: oklch(45.2% 0.195 297.6);
Tailwind
colors: {
  custom: {
    50: '#986cc9',
    500: '#662db1',
    950: '#000000',
  },
}
SCSS
$custom: #662db1;
$custom-light: #986cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662db1",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 265.909,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45197,
    "c": 0.19459,
    "h": 297.6
  },
  "luminance": 0.07876
}

Semantic roles & 50–950 ramp

primary
#662DB1
secondary
#A2C674
accent
#E3459F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662DB1

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

Preview Lab → · Contrast checker → · Palette generator →

#662DB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva