#661A87#661A87

#661A87 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.8% C 0.172 H 312.8°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#661A87
RGBrgb(102, 26, 135)
HSLhsl(282, 68%, 32%)
HSVhsv(282, 81%, 53%)
CMYKcmyk(24.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(27.61, 49.80, -44.62)
CIE-LCHlch(27.61, 66.86, 318.14°)
OKLaboklab(39.84% 0.117 -0.1263)
OKLCHoklch(39.84% 0.172 312.8)
XYZxyz(10.2213, 5.3132, 23.4041)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661A87 #3B871A
analogous
#301A87 #661A87 #871A72
triadic
#661A87 #87661A #1A8766
tetradic
#661A87 #87301A #3B871A #1A7287
square
#661A87 #87301A #3B871A #1A7287
split-complementary
#661A87 #72871A #1A8730
monochromatic
#180620 #3F1054 #661A87 #8D24BA #AC41DA

Accessibility & contrast

On white

10.18
#661A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#661A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661A87
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661A87#FFFFFF#000000##FFFFFF
##661A871.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#084385
Tritanopia (blue-blind)
#623451
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #661a87;
/* rgb */ color: rgb(102, 26, 135);
/* oklch */ color: oklch(39.8% 0.172 312.8);
Tailwind
colors: {
  custom: {
    50: '#9661ab',
    500: '#661a87',
    950: '#000000',
  },
}
SCSS
$custom: #661a87;
$custom-light: #9661ab;
$custom-dark: #000000;
JSON
{
  "hex": "#661a87",
  "rgb": {
    "r": 102,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 281.835,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39838,
    "c": 0.17214,
    "h": 312.8
  },
  "luminance": 0.05313
}

Semantic roles & 50–950 ramp

primary
#661A87
secondary
#67BA42
accent
#EB3D72
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #661A87

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

Preview Lab → · Contrast checker → · Palette generator →

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