#661B7F#661B7F

#661B7F is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.3% C 0.164 H 315.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#661B7F
RGBrgb(102, 27, 127)
HSLhsl(285, 65%, 30%)
HSVhsv(285, 79%, 50%)
CMYKcmyk(19.7%, 78.7%, 0%, 50.2%)
CIE-LABlab(27.13, 47.75, -40.36)
CIE-LCHlch(27.13, 62.53, 319.79°)
OKLaboklab(39.31% 0.1176 -0.1138)
OKLCHoklch(39.31% 0.164 315.9)
XYZxyz(9.7016, 5.1413, 20.5559)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B7F #347F1B
analogous
#341B7F #661B7F #7F1B66
triadic
#661B7F #7F661B #1B7F66
tetradic
#661B7F #7F341B #347F1B #1B667F
square
#661B7F #7F341B #347F1B #1B667F
split-complementary
#661B7F #667F1B #1B7F34
monochromatic
#15061A #3D104D #661B7F #8F26B1 #B03ED6

Accessibility & contrast

On white

10.35
#661B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#661B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661B7F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661B7F#FFFFFF#000000##FFFFFF
##661B7F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#19427D
Tritanopia (blue-blind)
#64314C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661b7f;
/* rgb */ color: rgb(102, 27, 127);
/* oklch */ color: oklch(39.3% 0.164 315.9);
Tailwind
colors: {
  custom: {
    50: '#9561a5',
    500: '#661b7f',
    950: '#000000',
  },
}
SCSS
$custom: #661b7f;
$custom-light: #9561a5;
$custom-dark: #000000;
JSON
{
  "hex": "#661b7f",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 285,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39314,
    "c": 0.16362,
    "h": 315.9
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#661B7F
secondary
#5FB343
accent
#E8406A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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