#661E82#661E82

#661E82 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.8% C 0.163 H 314.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#661E82
RGBrgb(102, 30, 130)
HSLhsl(283, 63%, 31%)
HSVhsv(283, 77%, 51%)
CMYKcmyk(21.5%, 76.9%, 0%, 49%)
CIE-LABlab(27.75, 47.24, -41.26)
CIE-LCHlch(27.75, 62.72, 318.87°)
OKLaboklab(39.82% 0.1142 -0.1164)
OKLCHoklch(39.82% 0.163 314.5)
XYZxyz(9.9724, 5.3654, 21.6251)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661E82 #3A821E
analogous
#341E82 #661E82 #821E6C
triadic
#661E82 #82661E #1E8266
tetradic
#661E82 #82341E #3A821E #1E6C82
square
#661E82 #82341E #3A821E #1E6C82
split-complementary
#661E82 #6C821E #1E8234
monochromatic
#18071F #3F1350 #661E82 #8D29B4 #AC46D4

Accessibility & contrast

On white

10.13
#661E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#661E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661E82
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661E82#FFFFFF#000000##FFFFFF
##661E821.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#184380
Tritanopia (blue-blind)
#63344F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #661e82;
/* rgb */ color: rgb(102, 30, 130);
/* oklch */ color: oklch(39.8% 0.163 314.5);
Tailwind
colors: {
  custom: {
    50: '#9562a7',
    500: '#661e82',
    950: '#000000',
  },
}
SCSS
$custom: #661e82;
$custom-light: #9562a7;
$custom-dark: #000000;
JSON
{
  "hex": "#661e82",
  "rgb": {
    "r": 102,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 283.2,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3982,
    "c": 0.16311,
    "h": 314.5
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#661E82
secondary
#66B547
accent
#E64270
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661E82

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

Preview Lab → · Contrast checker → · Palette generator →

#661E82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva