#662AA3#662AA3

#662AA3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.183 H 301.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#662AA3
RGBrgb(102, 42, 163)
HSLhsl(270, 59%, 40%)
HSVhsv(270, 74%, 64%)
CMYKcmyk(37.4%, 74.2%, 0%, 36.1%)
CIE-LABlab(32.09, 49.78, -54.53)
CIE-LCHlch(32.09, 73.83, 312.39°)
OKLaboklab(43.69% 0.0962 -0.1555)
OKLCHoklch(43.69% 0.183 301.8)
XYZxyz(12.9167, 7.1250, 35.3380)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AA3 #67A32A
analogous
#2A2BA3 #662AA3 #A22AA3
triadic
#662AA3 #A3662A #2AA366
tetradic
#662AA3 #A32A2B #67A32A #2AA3A2
square
#662AA3 #A32A2B #67A32A #2AA3A2
split-complementary
#662AA3 #A3A22A #2BA32A
monochromatic
#291142 #481D72 #662AA3 #853DCD #A36EDA

Accessibility & contrast

On white

8.66
#662AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#662AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AA3
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AA3#FFFFFF#000000##FFFFFF
##662AA31.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#594864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #662aa3;
/* rgb */ color: rgb(102, 42, 163);
/* oklch */ color: oklch(43.7% 0.183 301.8);
Tailwind
colors: {
  custom: {
    50: '#9769bf',
    500: '#662aa3',
    950: '#000000',
  },
}
SCSS
$custom: #662aa3;
$custom-light: #9769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#662aa3",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 269.752,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43687,
    "c": 0.18289,
    "h": 301.8
  },
  "luminance": 0.07125
}

Semantic roles & 50–950 ramp

primary
#662AA3
secondary
#95C068
accent
#E24695
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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