#662BA6#662BA6

#662BA6 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.185 H 300.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#662BA6
RGBrgb(102, 43, 166)
HSLhsl(269, 59%, 41%)
HSVhsv(269, 74%, 65%)
CMYKcmyk(38.6%, 74.1%, 0%, 34.9%)
CIE-LABlab(32.49, 50.07, -55.68)
CIE-LCHlch(32.49, 74.88, 311.96°)
OKLaboklab(44.05% 0.0946 -0.1589)
OKLCHoklch(44.05% 0.185 300.8)
XYZxyz(13.2246, 7.3056, 36.7824)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BA6 #6BA62B
analogous
#2B2EA6 #662BA6 #A32BA6
triadic
#662BA6 #A6662B #2BA666
tetradic
#662BA6 #A62B2E #6BA62B #2BA6A3
square
#662BA6 #A62B2E #6BA62B #2BA6A3
split-complementary
#662BA6 #A6A32B #2EA62B
monochromatic
#2A1245 #481E75 #662BA6 #8441CE #A471DA

Accessibility & contrast

On white

8.53
#662BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#662BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BA6
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BA6#FFFFFF#000000##FFFFFF
##662BA61.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#584A66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662ba6;
/* rgb */ color: rgb(102, 43, 166);
/* oklch */ color: oklch(44.0% 0.185 300.8);
Tailwind
colors: {
  custom: {
    50: '#976ac1',
    500: '#662ba6',
    950: '#000000',
  },
}
SCSS
$custom: #662ba6;
$custom-light: #976ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#662ba6",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 268.78,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44048,
    "c": 0.18495,
    "h": 300.8
  },
  "luminance": 0.07306
}

Semantic roles & 50–950 ramp

primary
#662BA6
secondary
#98C16B
accent
#E24697
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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