#662DA0#662DA0

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

Color values

HEX#662DA0
RGBrgb(102, 45, 160)
HSLhsl(270, 56%, 40%)
HSVhsv(270, 72%, 63%)
CMYKcmyk(36.2%, 71.9%, 0%, 37.3%)
CIE-LABlab(32.35, 47.64, -52.30)
CIE-LCHlch(32.35, 70.74, 312.33°)
OKLaboklab(43.8% 0.0938 -0.149)
OKLCHoklch(43.8% 0.176 302.2)
XYZxyz(12.7615, 7.2396, 33.9759)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DA0 #67A02D
analogous
#2D2DA0 #662DA0 #9F2DA0
triadic
#662DA0 #A0662D #2DA066
tetradic
#662DA0 #A02D2D #67A02D #2DA09F
square
#662DA0 #A02D2D #67A02D #2DA09F
split-complementary
#662DA0 #A09F2D #2DA02D
monochromatic
#291240 #482070 #662DA0 #8541C9 #A370D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662DA0#FFFFFF#000000##FFFFFF
##662DA01.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)
#004BA3
Deuteranopia (green-blind)
#004C9E
Tritanopia (blue-blind)
#5A4963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662da0;
/* rgb */ color: rgb(102, 45, 160);
/* oklch */ color: oklch(43.8% 0.176 302.2);
Tailwind
colors: {
  custom: {
    50: '#976bbd',
    500: '#662da0',
    950: '#000000',
  },
}
SCSS
$custom: #662da0;
$custom-light: #976bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#662da0",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 269.739,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43795,
    "c": 0.17607,
    "h": 302.2
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

primary
#662DA0
secondary
#95BE6B
accent
#DF4895
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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