#661F7A#661F7A

#661F7A is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.3% C 0.154 H 317.8°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#661F7A
RGBrgb(102, 31, 122)
HSLhsl(287, 59%, 30%)
HSVhsv(287, 75%, 48%)
CMYKcmyk(16.4%, 74.6%, 0%, 52.2%)
CIE-LABlab(27.33, 45.14, -36.90)
CIE-LCHlch(27.33, 58.30, 320.74°)
OKLaboklab(39.34% 0.1142 -0.1036)
OKLCHoklch(39.34% 0.154 317.8)
XYZxyz(9.4818, 5.2103, 18.9148)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F7A #337A1F
analogous
#381F7A #661F7A #7A1F61
triadic
#661F7A #7A661F #1F7A66
tetradic
#661F7A #7A381F #337A1F #1F617A
square
#661F7A #7A381F #337A1F #1F617A
split-complementary
#661F7A #617A1F #1F7A38
monochromatic
#140618 #3D1349 #661F7A #8F2BAB #B144CF

Accessibility & contrast

On white

10.28
#661F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661F7A
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F7A#FFFFFF#000000##FFFFFF
##661F7A1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#224378
Tritanopia (blue-blind)
#65314A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #661f7a;
/* rgb */ color: rgb(102, 31, 122);
/* oklch */ color: oklch(39.3% 0.154 317.8);
Tailwind
colors: {
  custom: {
    50: '#9562a1',
    500: '#661f7a',
    950: '#000000',
  },
}
SCSS
$custom: #661f7a;
$custom-light: #9562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#661f7a",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 286.813,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.39338,
    "c": 0.15422,
    "h": 317.8
  },
  "luminance": 0.0521
}

Semantic roles & 50–950 ramp

primary
#661F7A
secondary
#5EAD47
accent
#E34568
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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