#662CB1#662CB1

#662CB1 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.196 H 297.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#662CB1
RGBrgb(102, 44, 177)
HSLhsl(266, 60%, 43%)
HSVhsv(266, 75%, 69%)
CMYKcmyk(42.4%, 75.1%, 0%, 30.6%)
CIE-LABlab(33.56, 52.38, -60.52)
CIE-LCHlch(33.56, 80.04, 310.88°)
OKLaboklab(45.08% 0.0912 -0.1731)
OKLCHoklch(45.08% 0.196 297.8)
XYZxyz(14.3139, 7.8002, 42.3379)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CB1 #77B12C
analogous
#2C35B1 #662CB1 #A82CB1
triadic
#662CB1 #B1662C #2CB166
tetradic
#662CB1 #B12C35 #77B12C #2CB1A8
square
#662CB1 #B12C35 #77B12C #2CB1A8
split-complementary
#662CB1 #B1A82C #35B12C
monochromatic
#2E144F #4A2080 #662CB1 #8449D2 #A57ADE

Accessibility & contrast

On white

8.20
#662CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#662CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CB1
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CB1#FFFFFF#000000##FFFFFF
##662CB11.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#534F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662cb1;
/* rgb */ color: rgb(102, 44, 177);
/* oklch */ color: oklch(45.1% 0.196 297.8);
Tailwind
colors: {
  custom: {
    50: '#996bc9',
    500: '#662cb1',
    950: '#000000',
  },
}
SCSS
$custom: #662cb1;
$custom-light: #996bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662cb1",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 266.165,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45085,
    "c": 0.19568,
    "h": 297.8
  },
  "luminance": 0.078
}

Semantic roles & 50–950 ramp

primary
#662CB1
secondary
#A2C673
accent
#E3449E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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