#662CA2#662CA2

#662CA2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.179 H 301.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#662CA2
RGBrgb(102, 44, 162)
HSLhsl(269, 57%, 40%)
HSVhsv(269, 73%, 64%)
CMYKcmyk(37%, 72.8%, 0%, 36.5%)
CIE-LABlab(32.34, 48.61, -53.53)
CIE-LCHlch(32.34, 72.31, 312.25°)
OKLaboklab(43.84% 0.0945 -0.1526)
OKLCHoklch(43.84% 0.179 301.8)
XYZxyz(12.9002, 7.2347, 34.8922)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CA2 #68A22C
analogous
#2C2DA2 #662CA2 #A12CA2
triadic
#662CA2 #A2662C #2CA266
tetradic
#662CA2 #A22C2D #68A22C #2CA2A1
square
#662CA2 #A22C2D #68A22C #2CA2A1
split-complementary
#662CA2 #A2A12C #2DA22C
monochromatic
#291242 #481F72 #662CA2 #8440CB #A370D8

Accessibility & contrast

On white

8.58
#662CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#662CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CA2
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CA2#FFFFFF#000000##FFFFFF
##662CA21.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#594964
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662ca2;
/* rgb */ color: rgb(102, 44, 162);
/* oklch */ color: oklch(43.8% 0.179 301.8);
Tailwind
colors: {
  custom: {
    50: '#976abe',
    500: '#662ca2',
    950: '#000000',
  },
}
SCSS
$custom: #662ca2;
$custom-light: #976abe;
$custom-dark: #000000;
JSON
{
  "hex": "#662ca2",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 269.492,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43836,
    "c": 0.17946,
    "h": 301.8
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#662CA2
secondary
#96BF6A
accent
#E14795
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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