#662AAB#662AAB

#662AAB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.191 H 299.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#662AAB
RGBrgb(102, 42, 171)
HSLhsl(268, 61%, 42%)
HSVhsv(268, 75%, 67%)
CMYKcmyk(40.4%, 75.4%, 0%, 32.9%)
CIE-LABlab(32.75, 51.77, -58.27)
CIE-LCHlch(32.75, 77.95, 311.62°)
OKLaboklab(44.35% 0.0944 -0.1665)
OKLCHoklch(44.35% 0.191 299.6)
XYZxyz(13.6563, 7.4208, 39.2331)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AAB #6FAB2A
analogous
#2A2FAB #662AAB #A72AAB
triadic
#662AAB #AB662A #2AAB66
tetradic
#662AAB #AB2A2F #6FAB2A #2AABA7
square
#662AAB #AB2A2F #6FAB2A #2AABA7
split-complementary
#662AAB #ABA72A #2FAB2A
monochromatic
#2B1249 #491E7A #662AAB #8442D1 #A473DD

Accessibility & contrast

On white

8.45
#662AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#662AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AAB
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AAB#FFFFFF#000000##FFFFFF
##662AAB1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#564B69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662aab;
/* rgb */ color: rgb(102, 42, 171);
/* oklch */ color: oklch(44.4% 0.191 299.6);
Tailwind
colors: {
  custom: {
    50: '#986ac5',
    500: '#662aab',
    950: '#000000',
  },
}
SCSS
$custom: #662aab;
$custom-light: #986ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#662aab",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 267.907,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44354,
    "c": 0.19142,
    "h": 299.6
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#662AAB
secondary
#9BC46D
accent
#E44499
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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