#662AB4#662AB4

#662AB4 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.201 H 297.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#662AB4
RGBrgb(102, 42, 180)
HSLhsl(266, 62%, 44%)
HSVhsv(266, 77%, 71%)
CMYKcmyk(43.3%, 76.7%, 0%, 29.4%)
CIE-LABlab(33.51, 54.02, -62.39)
CIE-LCHlch(33.51, 82.53, 310.89°)
OKLaboklab(45.13% 0.0921 -0.1786)
OKLCHoklch(45.13% 0.201 297.3)
XYZxyz(14.5435, 7.7757, 43.9058)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AB4 #78B42A
analogous
#2A33B4 #662AB4 #AB2AB4
triadic
#662AB4 #B4662A #2AB466
tetradic
#662AB4 #B42A33 #78B42A #2AB4AB
square
#662AB4 #B42A33 #78B42A #2AB4AB
split-complementary
#662AB4 #B4AB2A #33B42A
monochromatic
#2E1351 #4A1E82 #662AB4 #8447D4 #A579E0

Accessibility & contrast

On white

8.22
#662AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662AB4
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AB4#FFFFFF#000000##FFFFFF
##662AB41.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#524F6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662ab4;
/* rgb */ color: rgb(102, 42, 180);
/* oklch */ color: oklch(45.1% 0.201 297.3);
Tailwind
colors: {
  custom: {
    50: '#996acc',
    500: '#662ab4',
    950: '#000000',
  },
}
SCSS
$custom: #662ab4;
$custom-light: #996acc;
$custom-dark: #000000;
JSON
{
  "hex": "#662ab4",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 266.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45128,
    "c": 0.20098,
    "h": 297.3
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#662AB4
secondary
#A2C872
accent
#E5439F
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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