#662A97#662A97

#662A97 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.170 H 305.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#662A97
RGBrgb(102, 42, 151)
HSLhsl(273, 56%, 38%)
HSVhsv(273, 72%, 59%)
CMYKcmyk(32.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(31.15, 46.85, -48.77)
CIE-LCHlch(31.15, 67.62, 313.85°)
OKLaboklab(42.73% 0.0985 -0.1386)
OKLCHoklch(42.73% 0.17 305.4)
XYZxyz(11.8921, 6.7152, 29.9418)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662A97 #5B972A
analogous
#302A97 #662A97 #972A91
triadic
#662A97 #97662A #2A9766
tetradic
#662A97 #97302A #5B972A #2A9197
square
#662A97 #97302A #5B972A #2A9197
split-complementary
#662A97 #91972A #2A9730
monochromatic
#250F37 #461D67 #662A97 #8637C7 #A367D5

Accessibility & contrast

On white

8.96
#662A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#662A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662A97
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662A97#FFFFFF#000000##FFFFFF
##662A971.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#5D435D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662a97;
/* rgb */ color: rgb(102, 42, 151);
/* oklch */ color: oklch(42.7% 0.170 305.4);
Tailwind
colors: {
  custom: {
    50: '#9669b6',
    500: '#662a97',
    950: '#000000',
  },
}
SCSS
$custom: #662a97;
$custom-light: #9669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662a97",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 273.028,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42726,
    "c": 0.17002,
    "h": 305.4
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

primary
#662A97
secondary
#8ABB62
accent
#E0488C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662A97

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

Preview Lab → · Contrast checker → · Palette generator →

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