#662CC2#662CC2

#662CC2 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.214 H 293.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#662CC2
RGBrgb(102, 44, 194)
HSLhsl(263, 63%, 47%)
HSVhsv(263, 77%, 76%)
CMYKcmyk(47.4%, 77.3%, 0%, 23.9%)
CIE-LABlab(35.04, 56.72, -68.15)
CIE-LCHlch(35.04, 88.66, 309.77°)
OKLaboklab(46.58% 0.0867 -0.1955)
OKLCHoklch(46.58% 0.214 293.9)
XYZxyz(16.1151, 8.5207, 51.8241)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CC2 #88C22C
analogous
#2C3DC2 #662CC2 #B12CC2
triadic
#662CC2 #C2662C #2CC266
tetradic
#662CC2 #C22C3D #88C22C #2CC2B1
square
#662CC2 #C22C3D #88C22C #2CC2B1
split-complementary
#662CC2 #C2B12C #3DC22C
monochromatic
#32155E #4C2190 #662CC2 #8753D8 #AA85E3

Accessibility & contrast

On white

7.77
#662CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#662CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CC2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CC2#FFFFFF#000000##FFFFFF
##662CC21.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#4A5676
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #662cc2;
/* rgb */ color: rgb(102, 44, 194);
/* oklch */ color: oklch(46.6% 0.214 293.9);
Tailwind
colors: {
  custom: {
    50: '#9b6cd6',
    500: '#662cc2',
    950: '#000000',
  },
}
SCSS
$custom: #662cc2;
$custom-light: #9b6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#662cc2",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 263.2,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46578,
    "c": 0.21385,
    "h": 293.9
  },
  "luminance": 0.08521
}

Semantic roles & 50–950 ramp

primary
#662CC2
secondary
#AECD7D
accent
#E642A7
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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