#662EAE#662EAE

#662EAE is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.190 H 298.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#662EAE
RGBrgb(102, 46, 174)
HSLhsl(266, 58%, 43%)
HSVhsv(266, 74%, 68%)
CMYKcmyk(41.4%, 73.6%, 0%, 31.8%)
CIE-LABlab(33.64, 50.70, -58.62)
CIE-LCHlch(33.64, 77.50, 310.86°)
OKLaboklab(45.06% 0.0901 -0.1675)
OKLCHoklch(45.06% 0.19 298.3)
XYZxyz(14.0945, 7.8345, 40.8058)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EAE #76AE2E
analogous
#2E36AE #662EAE #A62EAE
triadic
#662EAE #AE662E #2EAE66
tetradic
#662EAE #AE2E36 #76AE2E #2EAEA6
square
#662EAE #AE2E36 #76AE2E #2EAEA6
split-complementary
#662EAE #AEA62E #36AE2E
monochromatic
#2D144D #4A217E #662EAE #844ACF #A57ADC

Accessibility & contrast

On white

8.18
#662EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#662EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EAE
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EAE#FFFFFF#000000##FFFFFF
##662EAE1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662eae;
/* rgb */ color: rgb(102, 46, 174);
/* oklch */ color: oklch(45.1% 0.190 298.3);
Tailwind
colors: {
  custom: {
    50: '#986cc7',
    500: '#662eae',
    950: '#000000',
  },
}
SCSS
$custom: #662eae;
$custom-light: #986cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#662eae",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 266.25,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45059,
    "c": 0.19022,
    "h": 298.3
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#662EAE
secondary
#A1C474
accent
#E1469E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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