#661D87#661D87

#661D87 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.1% C 0.169 H 312.6°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#661D87
RGBrgb(102, 29, 135)
HSLhsl(281, 65%, 32%)
HSVhsv(281, 79%, 53%)
CMYKcmyk(24.4%, 78.5%, 0%, 47.1%)
CIE-LABlab(27.99, 48.71, -44.00)
CIE-LCHlch(27.99, 65.64, 317.90°)
OKLaboklab(40.11% 0.1143 -0.1245)
OKLCHoklch(40.11% 0.169 312.6)
XYZxyz(10.2912, 5.4531, 23.4274)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661D87 #3E871D
analogous
#311D87 #661D87 #871D73
triadic
#661D87 #87661D #1D8766
tetradic
#661D87 #87311D #3E871D #1D7387
square
#661D87 #87311D #3E871D #1D7387
split-complementary
#661D87 #73871D #1D8731
monochromatic
#1A0722 #401255 #661D87 #8C28B9 #AA47D7

Accessibility & contrast

On white

10.04
#661D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#661D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661D87
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661D87#FFFFFF#000000##FFFFFF
##661D871.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#0D4485
Tritanopia (blue-blind)
#623651
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #661d87;
/* rgb */ color: rgb(102, 29, 135);
/* oklch */ color: oklch(40.1% 0.169 312.6);
Tailwind
colors: {
  custom: {
    50: '#9662ab',
    500: '#661d87',
    950: '#000000',
  },
}
SCSS
$custom: #661d87;
$custom-light: #9662ab;
$custom-dark: #000000;
JSON
{
  "hex": "#661d87",
  "rgb": {
    "r": 102,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 281.321,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40105,
    "c": 0.16902,
    "h": 312.6
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

primary
#661D87
secondary
#6AB946
accent
#E84074
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #661D87

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

Preview Lab → · Contrast checker → · Palette generator →

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