#662CA9#662CA9

#662CA9 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.187 H 299.8°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#662CA9
RGBrgb(102, 44, 169)
HSLhsl(268, 59%, 42%)
HSVhsv(268, 74%, 66%)
CMYKcmyk(39.6%, 74%, 0%, 33.7%)
CIE-LABlab(32.90, 50.36, -56.82)
CIE-LCHlch(32.90, 75.93, 311.55°)
OKLaboklab(44.41% 0.093 -0.1623)
OKLCHoklch(44.41% 0.187 299.8)
XYZxyz(13.5398, 7.4906, 38.2609)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CA9 #6FA92C
analogous
#2C31A9 #662CA9 #A52CA9
triadic
#662CA9 #A9662C #2CA966
tetradic
#662CA9 #A92C31 #6FA92C #2CA9A5
square
#662CA9 #A92C31 #6FA92C #2CA9A5
split-complementary
#662CA9 #A9A52C #31A92C
monochromatic
#2B1348 #491F78 #662CA9 #8444CE #A474DB

Accessibility & contrast

On white

8.41
#662CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#662CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CA9
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CA9#FFFFFF#000000##FFFFFF
##662CA91.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#564C68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662ca9;
/* rgb */ color: rgb(102, 44, 169);
/* oklch */ color: oklch(44.4% 0.187 299.8);
Tailwind
colors: {
  custom: {
    50: '#986bc3',
    500: '#662ca9',
    950: '#000000',
  },
}
SCSS
$custom: #662ca9;
$custom-light: #986bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#662ca9",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 267.84,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4441,
    "c": 0.18705,
    "h": 299.8
  },
  "luminance": 0.07491
}

Semantic roles & 50–950 ramp

primary
#662CA9
secondary
#9BC36E
accent
#E2469A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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