#662CC7#662CC7

#662CC7 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.219 H 292.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#662CC7
RGBrgb(102, 44, 199)
HSLhsl(262, 64%, 48%)
HSVhsv(262, 78%, 78%)
CMYKcmyk(48.7%, 77.9%, 0%, 22%)
CIE-LABlab(35.50, 58.00, -70.33)
CIE-LCHlch(35.50, 91.16, 309.51°)
OKLaboklab(47.03% 0.0852 -0.2019)
OKLCHoklch(47.03% 0.219 292.9)
XYZxyz(16.6861, 8.7491, 54.8313)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CC7 #8DC72C
analogous
#2C3FC7 #662CC7 #B42CC7
triadic
#662CC7 #C7662C #2CC766
tetradic
#662CC7 #C72C3F #8DC72C #2CC7B4
square
#662CC7 #C72C3F #8DC72C #2CC7B4
split-complementary
#662CC7 #C7B42C #3FC72C
monochromatic
#331663 #4C2195 #662CC7 #8856DA #AB89E5

Accessibility & contrast

On white

7.64
#662CC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#662CC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CC7
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CC7#FFFFFF#000000##FFFFFF
##662CC71.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CB
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#475879
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #662cc7;
/* rgb */ color: rgb(102, 44, 199);
/* oklch */ color: oklch(47.0% 0.219 292.9);
Tailwind
colors: {
  custom: {
    50: '#9b6cd9',
    500: '#662cc7',
    950: '#000000',
  },
}
SCSS
$custom: #662cc7;
$custom-light: #9b6cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#662cc7",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 199
  },
  "hsl": {
    "h": 262.452,
    "s": 63.786,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47031,
    "c": 0.21914,
    "h": 292.9
  },
  "luminance": 0.0875
}

Semantic roles & 50–950 ramp

primary
#662CC7
secondary
#B1CF80
accent
#E741A9
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #662CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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