#662AB5#662AB5

#662AB5 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.202 H 297.0°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#662AB5
RGBrgb(102, 42, 181)
HSLhsl(266, 62%, 44%)
HSVhsv(266, 77%, 71%)
CMYKcmyk(43.6%, 76.8%, 0%, 29%)
CIE-LABlab(33.60, 54.27, -62.85)
CIE-LCHlch(33.60, 83.04, 310.81°)
OKLaboklab(45.22% 0.0919 -0.1799)
OKLCHoklch(45.22% 0.202 297)
XYZxyz(14.6457, 7.8166, 44.4442)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AB5 #79B52A
analogous
#2A33B5 #662AB5 #AB2AB5
triadic
#662AB5 #B5662A #2AB566
tetradic
#662AB5 #B52A33 #79B52A #2AB5AB
square
#662AB5 #B52A33 #79B52A #2AB5AB
split-complementary
#662AB5 #B5AB2A #33B52A
monochromatic
#2E1352 #4A1E83 #662AB5 #8448D4 #A679E0

Accessibility & contrast

On white

8.19
#662AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662AB5
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AB5#FFFFFF#000000##FFFFFF
##662AB51.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#51506E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662ab5;
/* rgb */ color: rgb(102, 42, 181);
/* oklch */ color: oklch(45.2% 0.202 297.0);
Tailwind
colors: {
  custom: {
    50: '#996acc',
    500: '#662ab5',
    950: '#000000',
  },
}
SCSS
$custom: #662ab5;
$custom-light: #996acc;
$custom-dark: #000000;
JSON
{
  "hex": "#662ab5",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 265.899,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45215,
    "c": 0.20204,
    "h": 297
  },
  "luminance": 0.07817
}

Semantic roles & 50–950 ramp

primary
#662AB5
secondary
#A3C873
accent
#E5429F
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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