#661D7B#661D7B

#661D7B is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.2% C 0.158 H 317.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#661D7B
RGBrgb(102, 29, 123)
HSLhsl(287, 62%, 30%)
HSVhsv(287, 76%, 48%)
CMYKcmyk(17.1%, 76.4%, 0%, 51.8%)
CIE-LABlab(27.11, 46.16, -37.87)
CIE-LCHlch(27.11, 59.70, 320.63°)
OKLaboklab(39.21% 0.1162 -0.1065)
OKLCHoklch(39.21% 0.158 317.5)
XYZxyz(9.4935, 5.1340, 19.2259)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661D7B #327B1D
analogous
#371D7B #661D7B #7B1D61
triadic
#661D7B #7B661D #1D7B66
tetradic
#661D7B #7B371D #327B1D #1D617B
square
#661D7B #7B371D #327B1D #1D617B
split-complementary
#661D7B #617B1D #1D7B37
monochromatic
#150619 #3D1149 #661D7B #8F29AD #B240D2

Accessibility & contrast

On white

10.36
#661D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661D7B
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661D7B#FFFFFF#000000##FFFFFF
##661D7B1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#204279
Tritanopia (blue-blind)
#65314A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661d7b;
/* rgb */ color: rgb(102, 29, 123);
/* oklch */ color: oklch(39.2% 0.158 317.5);
Tailwind
colors: {
  custom: {
    50: '#9561a2',
    500: '#661d7b',
    950: '#000000',
  },
}
SCSS
$custom: #661d7b;
$custom-light: #9561a2;
$custom-dark: #000000;
JSON
{
  "hex": "#661d7b",
  "rgb": {
    "r": 102,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 286.596,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.15759,
    "h": 317.5
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

primary
#661D7B
secondary
#5DAF45
accent
#E54367
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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