#661B7C#661B7C

#661B7C is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.1% C 0.161 H 317.2°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#661B7C
RGBrgb(102, 27, 124)
HSLhsl(286, 64%, 30%)
HSVhsv(286, 78%, 49%)
CMYKcmyk(17.7%, 78.2%, 0%, 51.4%)
CIE-LABlab(26.92, 47.13, -38.82)
CIE-LCHlch(26.92, 61.06, 320.52°)
OKLaboklab(39.09% 0.118 -0.1092)
OKLCHoklch(39.09% 0.161 317.2)
XYZxyz(9.5090, 5.0643, 19.5415)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B7C #317C1B
analogous
#361B7C #661B7C #7C1B61
triadic
#661B7C #7C661B #1B7C66
tetradic
#661B7C #7C361B #317C1B #1B617C
square
#661B7C #7C361B #317C1B #1B617C
split-complementary
#661B7C #617C1B #1B7C36
monochromatic
#150519 #3D104A #661B7C #8F26AE #B23DD5

Accessibility & contrast

On white

10.43
#661B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#661B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661B7C
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661B7C#FFFFFF#000000##FFFFFF
##661B7C1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#1D427A
Tritanopia (blue-blind)
#65304B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661b7c;
/* rgb */ color: rgb(102, 27, 124);
/* oklch */ color: oklch(39.1% 0.161 317.2);
Tailwind
colors: {
  custom: {
    50: '#9560a2',
    500: '#661b7c',
    950: '#000000',
  },
}
SCSS
$custom: #661b7c;
$custom-light: #9560a2;
$custom-dark: #000000;
JSON
{
  "hex": "#661b7c",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 286.392,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39092,
    "c": 0.16082,
    "h": 317.2
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#661B7C
secondary
#5CB043
accent
#E74166
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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