#662BC3#662BC3

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

Color values

HEX#662BC3
RGBrgb(102, 43, 195)
HSLhsl(263, 64%, 47%)
HSVhsv(263, 78%, 76%)
CMYKcmyk(47.7%, 77.9%, 0%, 23.5%)
CIE-LABlab(34.99, 57.40, -68.83)
CIE-LCHlch(34.99, 89.62, 309.83°)
OKLaboklab(46.57% 0.0871 -0.1975)
OKLCHoklch(46.57% 0.216 293.8)
XYZxyz(16.1910, 8.4922, 52.4052)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BC3 #88C32B
analogous
#2B3CC3 #662BC3 #B22BC3
triadic
#662BC3 #C3662B #2BC366
tetradic
#662BC3 #C32B3C #88C32B #2BC3B2
square
#662BC3 #C32B3C #88C32B #2BC3B2
split-complementary
#662BC3 #C3B22B #3CC32B
monochromatic
#32155F #4C2091 #662BC3 #8752D9 #AA84E4

Accessibility & contrast

On white

7.78
#662BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662BC3
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BC3#FFFFFF#000000##FFFFFF
##662BC31.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#495677
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #662bc3;
/* rgb */ color: rgb(102, 43, 195);
/* oklch */ color: oklch(46.6% 0.216 293.8);
Tailwind
colors: {
  custom: {
    50: '#9b6cd6',
    500: '#662bc3',
    950: '#000000',
  },
}
SCSS
$custom: #662bc3;
$custom-light: #9b6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#662bc3",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 195
  },
  "hsl": {
    "h": 263.289,
    "s": 63.866,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46566,
    "c": 0.21586,
    "h": 293.8
  },
  "luminance": 0.08493
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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