#662BC0#662BC0

#662BC0 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.213 H 294.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#662BC0
RGBrgb(102, 43, 192)
HSLhsl(264, 63%, 46%)
HSVhsv(264, 78%, 75%)
CMYKcmyk(46.9%, 77.6%, 0%, 24.7%)
CIE-LABlab(34.72, 56.63, -67.51)
CIE-LCHlch(34.72, 88.12, 309.99°)
OKLaboklab(46.29% 0.088 -0.1936)
OKLCHoklch(46.29% 0.213 294.4)
XYZxyz(15.8552, 8.3578, 50.6368)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BC0 #85C02B
analogous
#2B3BC0 #662BC0 #B02BC0
triadic
#662BC0 #C0662B #2BC066
tetradic
#662BC0 #C02B3B #85C02B #2BC0B0
square
#662BC0 #C02B3B #85C02B #2BC0B0
split-complementary
#662BC0 #C0B02B #3BC02B
monochromatic
#31155C #4B208E #662BC0 #8650D8 #A982E3

Accessibility & contrast

On white

7.86
#662BC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#662BC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BC0
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BC0#FFFFFF#000000##FFFFFF
##662BC01.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C4
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#4B5575
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #662bc0;
/* rgb */ color: rgb(102, 43, 192);
/* oklch */ color: oklch(46.3% 0.213 294.4);
Tailwind
colors: {
  custom: {
    50: '#9a6bd4',
    500: '#662bc0',
    950: '#000000',
  },
}
SCSS
$custom: #662bc0;
$custom-light: #9a6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#662bc0",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 192
  },
  "hsl": {
    "h": 263.758,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46295,
    "c": 0.21269,
    "h": 294.4
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#662BC0
secondary
#ACCC7B
accent
#E641A5
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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