#662BC2#662BC2

#662BC2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.5% C 0.215 H 294.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#662BC2
RGBrgb(102, 43, 194)
HSLhsl(263, 64%, 46%)
HSVhsv(263, 78%, 76%)
CMYKcmyk(47.4%, 77.8%, 0%, 23.9%)
CIE-LABlab(34.90, 57.14, -68.39)
CIE-LCHlch(34.90, 89.12, 309.88°)
OKLaboklab(46.48% 0.0874 -0.1962)
OKLCHoklch(46.48% 0.215 294)
XYZxyz(16.0783, 8.4471, 51.8118)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BC2 #87C22B
analogous
#2B3BC2 #662BC2 #B22BC2
triadic
#662BC2 #C2662B #2BC266
tetradic
#662BC2 #C22B3B #87C22B #2BC2B2
square
#662BC2 #C22B3B #87C22B #2BC2B2
split-complementary
#662BC2 #C2B22B #3BC22B
monochromatic
#31155E #4C2090 #662BC2 #8652D9 #A984E4

Accessibility & contrast

On white

7.81
#662BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#662BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BC2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BC2#FFFFFF#000000##FFFFFF
##662BC21.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#4A5576
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #662bc2;
/* rgb */ color: rgb(102, 43, 194);
/* oklch */ color: oklch(46.5% 0.215 294.0);
Tailwind
colors: {
  custom: {
    50: '#9b6bd6',
    500: '#662bc2',
    950: '#000000',
  },
}
SCSS
$custom: #662bc2;
$custom-light: #9b6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#662bc2",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 263.444,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46475,
    "c": 0.21479,
    "h": 294
  },
  "luminance": 0.08448
}

Semantic roles & 50–950 ramp

primary
#662BC2
secondary
#ADCD7C
accent
#E741A6
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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