#662AB7#662AB7

#662AB7 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.204 H 296.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#662AB7
RGBrgb(102, 42, 183)
HSLhsl(266, 63%, 44%)
HSVhsv(266, 77%, 72%)
CMYKcmyk(44.3%, 77%, 0%, 28.2%)
CIE-LABlab(33.77, 54.78, -63.75)
CIE-LCHlch(33.77, 84.05, 310.67°)
OKLaboklab(45.39% 0.0913 -0.1826)
OKLCHoklch(45.39% 0.204 296.6)
XYZxyz(14.8524, 7.8993, 45.5327)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AB7 #7BB72A
analogous
#2A34B7 #662AB7 #AD2AB7
triadic
#662AB7 #B7662A #2AB766
tetradic
#662AB7 #B72A34 #7BB72A #2AB7AD
square
#662AB7 #B72A34 #7BB72A #2AB7AD
split-complementary
#662AB7 #B7AD2A #34B72A
monochromatic
#2F1353 #4A1F85 #662AB7 #8549D5 #A67BE1

Accessibility & contrast

On white

8.14
#662AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#662AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AB7
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AB7#FFFFFF#000000##FFFFFF
##662AB71.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#505070
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662ab7;
/* rgb */ color: rgb(102, 42, 183);
/* oklch */ color: oklch(45.4% 0.204 296.6);
Tailwind
colors: {
  custom: {
    50: '#996ace',
    500: '#662ab7',
    950: '#000000',
  },
}
SCSS
$custom: #662ab7;
$custom-light: #996ace;
$custom-dark: #000000;
JSON
{
  "hex": "#662ab7",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 265.532,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45391,
    "c": 0.20414,
    "h": 296.6
  },
  "luminance": 0.079
}

Semantic roles & 50–950 ramp

primary
#662AB7
secondary
#A5C974
accent
#E642A0
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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