#662AAA#662AAA

#662AAA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.190 H 299.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#662AAA
RGBrgb(102, 42, 170)
HSLhsl(268, 60%, 42%)
HSVhsv(268, 75%, 67%)
CMYKcmyk(40%, 75.3%, 0%, 33.3%)
CIE-LABlab(32.66, 51.52, -57.81)
CIE-LCHlch(32.66, 77.43, 311.71°)
OKLaboklab(44.27% 0.0947 -0.1651)
OKLCHoklch(44.27% 0.19 299.8)
XYZxyz(13.5613, 7.3828, 38.7330)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AAA #6EAA2A
analogous
#2A2EAA #662AAA #A62AAA
triadic
#662AAA #AA662A #2AAA66
tetradic
#662AAA #AA2A2E #6EAA2A #2AAAA6
square
#662AAA #AA2A2E #6EAA2A #2AAAA6
split-complementary
#662AAA #AAA62A #2EAA2A
monochromatic
#2B1248 #491E79 #662AAA #8441D0 #A472DC

Accessibility & contrast

On white

8.48
#662AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662AAA
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AAA#FFFFFF#000000##FFFFFF
##662AAA1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#564B68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662aaa;
/* rgb */ color: rgb(102, 42, 170);
/* oklch */ color: oklch(44.3% 0.190 299.8);
Tailwind
colors: {
  custom: {
    50: '#986ac4',
    500: '#662aaa',
    950: '#000000',
  },
}
SCSS
$custom: #662aaa;
$custom-light: #986ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#662aaa",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 268.125,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4427,
    "c": 0.19036,
    "h": 299.8
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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