#661F7D#661F7D

#661F7D is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.6% C 0.157 H 316.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#661F7D
RGBrgb(102, 31, 125)
HSLhsl(285, 60%, 31%)
HSVhsv(285, 75%, 49%)
CMYKcmyk(18.4%, 75.2%, 0%, 51%)
CIE-LABlab(27.53, 45.78, -38.46)
CIE-LCHlch(27.53, 59.79, 319.96°)
OKLaboklab(39.55% 0.1139 -0.1082)
OKLCHoklch(39.55% 0.157 316.5)
XYZxyz(9.6706, 5.2858, 19.9089)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F7D #367D1F
analogous
#371F7D #661F7D #7D1F65
triadic
#661F7D #7D661F #1F7D66
tetradic
#661F7D #7D371F #367D1F #1F657D
square
#661F7D #7D371F #367D1F #1F657D
split-complementary
#661F7D #657D1F #1F7D37
monochromatic
#16071B #3E134C #661F7D #8E2BAE #AF45D1

Accessibility & contrast

On white

10.21
#661F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661F7D
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F7D#FFFFFF#000000##FFFFFF
##661F7D1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#1F437B
Tritanopia (blue-blind)
#65334C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #661f7d;
/* rgb */ color: rgb(102, 31, 125);
/* oklch */ color: oklch(39.6% 0.157 316.5);
Tailwind
colors: {
  custom: {
    50: '#9562a3',
    500: '#661f7d',
    950: '#000000',
  },
}
SCSS
$custom: #661f7d;
$custom-light: #9562a3;
$custom-dark: #000000;
JSON
{
  "hex": "#661f7d",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 285.319,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39552,
    "c": 0.1571,
    "h": 316.5
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#661F7D
secondary
#61B048
accent
#E3446B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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