#662CA0#662CA0

#662CA0 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.177 H 302.3°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#662CA0
RGBrgb(102, 44, 160)
HSLhsl(270, 57%, 40%)
HSVhsv(270, 73%, 63%)
CMYKcmyk(36.2%, 72.5%, 0%, 37.3%)
CIE-LABlab(32.18, 48.11, -52.57)
CIE-LCHlch(32.18, 71.27, 312.46°)
OKLaboklab(43.68% 0.0949 -0.1498)
OKLCHoklch(43.68% 0.177 302.3)
XYZxyz(12.7238, 7.1642, 33.9634)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CA0 #66A02C
analogous
#2C2CA0 #662CA0 #A02CA0
triadic
#662CA0 #A0662C #2CA066
tetradic
#662CA0 #A02C2C #66A02C #2CA0A0
square
#662CA0 #A02C2C #66A02C #2CA0A0
split-complementary
#662CA0 #A0A02C #2CA02C
monochromatic
#291240 #471F70 #662CA0 #853FCA #A36FD7

Accessibility & contrast

On white

8.63
#662CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#662CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CA0
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CA0#FFFFFF#000000##FFFFFF
##662CA01.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#004B9E
Tritanopia (blue-blind)
#5A4863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662ca0;
/* rgb */ color: rgb(102, 44, 160);
/* oklch */ color: oklch(43.7% 0.177 302.3);
Tailwind
colors: {
  custom: {
    50: '#976abd',
    500: '#662ca0',
    950: '#000000',
  },
}
SCSS
$custom: #662ca0;
$custom-light: #976abd;
$custom-dark: #000000;
JSON
{
  "hex": "#662ca0",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 270,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.43675,
    "c": 0.17728,
    "h": 302.3
  },
  "luminance": 0.07164
}

Semantic roles & 50–950 ramp

primary
#662CA0
secondary
#94BF69
accent
#E04894
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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