#662CA1#662CA1

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

Color values

HEX#662CA1
RGBrgb(102, 44, 161)
HSLhsl(270, 57%, 40%)
HSVhsv(270, 73%, 63%)
CMYKcmyk(36.6%, 72.7%, 0%, 36.9%)
CIE-LABlab(32.26, 48.36, -53.05)
CIE-LCHlch(32.26, 71.79, 312.35°)
OKLaboklab(43.76% 0.0947 -0.1512)
OKLCHoklch(43.76% 0.178 302.1)
XYZxyz(12.8117, 7.1993, 34.4259)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CA1 #67A12C
analogous
#2C2CA1 #662CA1 #A12CA1
triadic
#662CA1 #A1662C #2CA166
tetradic
#662CA1 #A12C2C #67A12C #2CA1A1
square
#662CA1 #A12C2C #67A12C #2CA1A1
split-complementary
#662CA1 #A1A12C #2CA12C
monochromatic
#291241 #481F71 #662CA1 #8540CB #A370D8

Accessibility & contrast

On white

8.61
#662CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#662CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CA1
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CA1#FFFFFF#000000##FFFFFF
##662CA11.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#5A4864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662ca1;
/* rgb */ color: rgb(102, 44, 161);
/* oklch */ color: oklch(43.8% 0.178 302.1);
Tailwind
colors: {
  custom: {
    50: '#976abe',
    500: '#662ca1',
    950: '#000000',
  },
}
SCSS
$custom: #662ca1;
$custom-light: #976abe;
$custom-dark: #000000;
JSON
{
  "hex": "#662ca1",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 269.744,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43755,
    "c": 0.17838,
    "h": 302.1
  },
  "luminance": 0.07199
}

Semantic roles & 50–950 ramp

primary
#662CA1
secondary
#95BF6A
accent
#E04795
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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