#661B82#661B82

#661B82 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.166 H 314.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#661B82
RGBrgb(102, 27, 130)
HSLhsl(284, 66%, 31%)
HSVhsv(284, 79%, 51%)
CMYKcmyk(21.5%, 79.2%, 0%, 49%)
CIE-LABlab(27.35, 48.38, -41.90)
CIE-LCHlch(27.35, 64.00, 319.11°)
OKLaboklab(39.54% 0.1171 -0.1183)
OKLCHoklch(39.54% 0.166 314.7)
XYZxyz(9.9000, 5.2207, 21.6010)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B82 #37821B
analogous
#321B82 #661B82 #821B6A
triadic
#661B82 #82661B #1B8266
tetradic
#661B82 #82321B #37821B #1B6A82
square
#661B82 #82321B #37821B #1B6A82
split-complementary
#661B82 #6A821B #1B8232
monochromatic
#16061D #3E104F #661B82 #8E26B5 #AE40D7

Accessibility & contrast

On white

10.27
#661B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#661B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661B82
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661B82#FFFFFF#000000##FFFFFF
##661B821.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#154280
Tritanopia (blue-blind)
#63334E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #661b82;
/* rgb */ color: rgb(102, 27, 130);
/* oklch */ color: oklch(39.5% 0.166 314.7);
Tailwind
colors: {
  custom: {
    50: '#9561a7',
    500: '#661b82',
    950: '#000000',
  },
}
SCSS
$custom: #661b82;
$custom-light: #9561a7;
$custom-dark: #000000;
JSON
{
  "hex": "#661b82",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 283.689,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3954,
    "c": 0.16643,
    "h": 314.7
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#661B82
secondary
#62B643
accent
#E93F6D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661B82

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

Preview Lab → · Contrast checker → · Palette generator →

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