#662AAE#662AAE

#662AAE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.195 H 298.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#662AAE
RGBrgb(102, 42, 174)
HSLhsl(267, 61%, 42%)
HSVhsv(267, 76%, 68%)
CMYKcmyk(41.4%, 75.9%, 0%, 31.8%)
CIE-LABlab(33.00, 52.52, -59.66)
CIE-LCHlch(33.00, 79.48, 311.36°)
OKLaboklab(44.61% 0.0937 -0.1706)
OKLCHoklch(44.61% 0.195 298.8)
XYZxyz(13.9455, 7.5365, 40.7562)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AAE #72AE2A
analogous
#2A30AE #662AAE #A82AAE
triadic
#662AAE #AE662A #2AAE66
tetradic
#662AAE #AE2A30 #72AE2A #2AAEA8
square
#662AAE #AE2A30 #72AE2A #2AAEA8
split-complementary
#662AAE #AEA82A #30AE2A
monochromatic
#2C124B #491E7D #662AAE #8443D2 #A475DE

Accessibility & contrast

On white

8.38
#662AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#662AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AAE
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AAE#FFFFFF#000000##FFFFFF
##662AAE1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#544D6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662aae;
/* rgb */ color: rgb(102, 42, 174);
/* oklch */ color: oklch(44.6% 0.195 298.8);
Tailwind
colors: {
  custom: {
    50: '#986ac7',
    500: '#662aae',
    950: '#000000',
  },
}
SCSS
$custom: #662aae;
$custom-light: #986ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#662aae",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 267.273,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4461,
    "c": 0.19462,
    "h": 298.8
  },
  "luminance": 0.07537
}

Semantic roles & 50–950 ramp

primary
#662AAE
secondary
#9EC56F
accent
#E4449B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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