#661B87#661B87

#661B87 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.9% C 0.171 H 312.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#661B87
RGBrgb(102, 27, 135)
HSLhsl(282, 67%, 32%)
HSVhsv(282, 80%, 53%)
CMYKcmyk(24.4%, 80%, 0%, 47.1%)
CIE-LABlab(27.73, 49.45, -44.42)
CIE-LCHlch(27.73, 66.47, 318.07°)
OKLaboklab(39.92% 0.1161 -0.1257)
OKLCHoklch(39.92% 0.171 312.7)
XYZxyz(10.2438, 5.3582, 23.4116)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B87 #3C871B
analogous
#301B87 #661B87 #871B72
triadic
#661B87 #87661B #1B8766
tetradic
#661B87 #87301B #3C871B #1B7287
square
#661B87 #87301B #3C871B #1B7287
split-complementary
#661B87 #72871B #1B8730
monochromatic
#190721 #3F1154 #661B87 #8D25BA #AB43D9

Accessibility & contrast

On white

10.14
#661B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661B87
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661B87#FFFFFF#000000##FFFFFF
##661B871.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#0A4385
Tritanopia (blue-blind)
#623551
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #661b87;
/* rgb */ color: rgb(102, 27, 135);
/* oklch */ color: oklch(39.9% 0.171 312.7);
Tailwind
colors: {
  custom: {
    50: '#9661ab',
    500: '#661b87',
    950: '#000000',
  },
}
SCSS
$custom: #661b87;
$custom-light: #9661ab;
$custom-dark: #000000;
JSON
{
  "hex": "#661b87",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 281.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39925,
    "c": 0.17113,
    "h": 312.7
  },
  "luminance": 0.05358
}

Semantic roles & 50–950 ramp

primary
#661B87
secondary
#68BA44
accent
#EA3E73
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #661B87

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

Preview Lab → · Contrast checker → · Palette generator →

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