#662CA6#662CA6

#662CA6 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.184 H 300.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#662CA6
RGBrgb(102, 44, 166)
HSLhsl(269, 58%, 41%)
HSVhsv(269, 73%, 65%)
CMYKcmyk(38.6%, 73.5%, 0%, 34.9%)
CIE-LABlab(32.66, 49.61, -55.42)
CIE-LCHlch(32.66, 74.38, 311.83°)
OKLaboklab(44.16% 0.0937 -0.1581)
OKLCHoklch(44.16% 0.184 300.6)
XYZxyz(13.2614, 7.3792, 36.7947)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CA6 #6CA62C
analogous
#2C2FA6 #662CA6 #A32CA6
triadic
#662CA6 #A6662C #2CA666
tetradic
#662CA6 #A62C2F #6CA62C #2CA6A3
square
#662CA6 #A62C2F #6CA62C #2CA6A3
split-complementary
#662CA6 #A6A32C #2FA62C
monochromatic
#2B1245 #481F76 #662CA6 #8442CD #A473DA

Accessibility & contrast

On white

8.48
#662CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#662CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CA6
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CA6#FFFFFF#000000##FFFFFF
##662CA61.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#584A66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662ca6;
/* rgb */ color: rgb(102, 44, 166);
/* oklch */ color: oklch(44.2% 0.184 300.6);
Tailwind
colors: {
  custom: {
    50: '#976bc1',
    500: '#662ca6',
    950: '#000000',
  },
}
SCSS
$custom: #662ca6;
$custom-light: #976bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#662ca6",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 268.525,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44162,
    "c": 0.1838,
    "h": 300.6
  },
  "luminance": 0.07379
}

Semantic roles & 50–950 ramp

primary
#662CA6
secondary
#99C16D
accent
#E14698
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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