#662CBD#662CBD

#662CBD is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.1% C 0.209 H 295.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#662CBD
RGBrgb(102, 44, 189)
HSLhsl(264, 62%, 46%)
HSVhsv(264, 77%, 74%)
CMYKcmyk(46%, 76.7%, 0%, 25.9%)
CIE-LABlab(34.60, 55.44, -65.94)
CIE-LCHlch(34.60, 86.15, 310.06°)
OKLaboklab(46.13% 0.0881 -0.189)
OKLCHoklch(46.13% 0.209 295)
XYZxyz(15.5630, 8.2998, 48.9163)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CBD #83BD2C
analogous
#2C3ABD #662CBD #AE2CBD
triadic
#662CBD #BD662C #2CBD66
tetradic
#662CBD #BD2C3A #83BD2C #2CBDAE
square
#662CBD #BD2C3A #83BD2C #2CBDAE
split-complementary
#662CBD #BDAE2C #3ABD2C
monochromatic
#30155A #4B208B #662CBD #8650D6 #A882E2

Accessibility & contrast

On white

7.89
#662CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#662CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CBD
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CBD#FFFFFF#000000##FFFFFF
##662CBD1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#4D5473
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662cbd;
/* rgb */ color: rgb(102, 44, 189);
/* oklch */ color: oklch(46.1% 0.209 295.0);
Tailwind
colors: {
  custom: {
    50: '#9a6cd2',
    500: '#662cbd',
    950: '#000000',
  },
}
SCSS
$custom: #662cbd;
$custom-light: #9a6cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#662cbd",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 264,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46131,
    "c": 0.20853,
    "h": 295
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#662CBD
secondary
#AACB7A
accent
#E542A4
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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