#661F87#661F87

#661F87 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.3% C 0.167 H 312.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#661F87
RGBrgb(102, 31, 135)
HSLhsl(281, 63%, 33%)
HSVhsv(281, 77%, 53%)
CMYKcmyk(24.4%, 77%, 0%, 47.1%)
CIE-LABlab(28.26, 47.93, -43.56)
CIE-LCHlch(28.26, 64.77, 317.73°)
OKLaboklab(40.3% 0.1124 -0.1232)
OKLCHoklch(40.3% 0.167 312.4)
XYZxyz(10.3419, 5.5543, 23.4443)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F87 #40871F
analogous
#321F87 #661F87 #871F74
triadic
#661F87 #87661F #1F8766
tetradic
#661F87 #87321F #40871F #1F7487
square
#661F87 #87321F #40871F #1F7487
split-complementary
#661F87 #74871F #1F8732
monochromatic
#1B0823 #401455 #661F87 #8C2AB9 #AA4BD6

Accessibility & contrast

On white

9.95
#661F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#661F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F87
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F87#FFFFFF#000000##FFFFFF
##661F871.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#104485
Tritanopia (blue-blind)
#623752
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #661f87;
/* rgb */ color: rgb(102, 31, 135);
/* oklch */ color: oklch(40.3% 0.167 312.4);
Tailwind
colors: {
  custom: {
    50: '#9663ab',
    500: '#661f87',
    950: '#000000',
  },
}
SCSS
$custom: #661f87;
$custom-light: #9663ab;
$custom-dark: #000000;
JSON
{
  "hex": "#661f87",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 280.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40296,
    "c": 0.1668,
    "h": 312.4
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#661F87
secondary
#6DB84A
accent
#E64276
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661F87

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

Preview Lab → · Contrast checker → · Palette generator →

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