#662BC6#662BC6

#662BC6 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.219 H 293.2°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#662BC6
RGBrgb(102, 43, 198)
HSLhsl(263, 64%, 47%)
HSVhsv(263, 78%, 78%)
CMYKcmyk(48.5%, 78.3%, 0%, 22.4%)
CIE-LABlab(35.26, 58.16, -70.13)
CIE-LCHlch(35.26, 91.11, 309.67°)
OKLaboklab(46.84% 0.0862 -0.2013)
OKLCHoklch(46.84% 0.219 293.2)
XYZxyz(16.5336, 8.6292, 54.2096)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BC6 #8BC62B
analogous
#2B3DC6 #662BC6 #B42BC6
triadic
#662BC6 #C6662B #2BC666
tetradic
#662BC6 #C62B3D #8BC62B #2BC6B4
square
#662BC6 #C62B3D #8BC62B #2BC6B4
split-complementary
#662BC6 #C6B42B #3DC62B
monochromatic
#321561 #4C2094 #662BC6 #8754DA #AA87E5

Accessibility & contrast

On white

7.70
#662BC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#662BC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BC6
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BC6#FFFFFF#000000##FFFFFF
##662BC61.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CA
Deuteranopia (green-blind)
#0050C3
Tritanopia (blue-blind)
#485778
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #662bc6;
/* rgb */ color: rgb(102, 43, 198);
/* oklch */ color: oklch(46.8% 0.219 293.2);
Tailwind
colors: {
  custom: {
    50: '#9b6cd8',
    500: '#662bc6',
    950: '#000000',
  },
}
SCSS
$custom: #662bc6;
$custom-light: #9b6cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#662bc6",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 198
  },
  "hsl": {
    "h": 262.839,
    "s": 64.315,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46839,
    "c": 0.21901,
    "h": 293.2
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#662BC6
secondary
#B0CE7F
accent
#E740A8
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #662BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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