#662DAE#662DAE

#662DAE is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.191 H 298.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#662DAE
RGBrgb(102, 45, 174)
HSLhsl(267, 59%, 43%)
HSVhsv(267, 74%, 68%)
CMYKcmyk(41.4%, 74.1%, 0%, 31.8%)
CIE-LABlab(33.47, 51.17, -58.88)
CIE-LCHlch(33.47, 78.01, 310.99°)
OKLaboklab(44.94% 0.091 -0.1683)
OKLCHoklch(44.94% 0.191 298.4)
XYZxyz(14.0559, 7.7573, 40.7930)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DAE #75AE2D
analogous
#2D34AE #662DAE #A72DAE
triadic
#662DAE #AE662D #2DAE66
tetradic
#662DAE #AE2D34 #75AE2D #2DAEA7
square
#662DAE #AE2D34 #75AE2D #2DAEA7
split-complementary
#662DAE #AEA72D #34AE2D
monochromatic
#2D144D #49207D #662DAE #8448D0 #A579DC

Accessibility & contrast

On white

8.23
#662DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#662DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DAE
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DAE#FFFFFF#000000##FFFFFF
##662DAE1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004DAB
Tritanopia (blue-blind)
#544E6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662dae;
/* rgb */ color: rgb(102, 45, 174);
/* oklch */ color: oklch(44.9% 0.191 298.4);
Tailwind
colors: {
  custom: {
    50: '#986cc7',
    500: '#662dae',
    950: '#000000',
  },
}
SCSS
$custom: #662dae;
$custom-light: #986cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#662dae",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 266.512,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44943,
    "c": 0.19135,
    "h": 298.4
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#662DAE
secondary
#A0C472
accent
#E2469D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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