#661F97#661F97

#661F97 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.182 H 306.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#661F97
RGBrgb(102, 31, 151)
HSLhsl(276, 66%, 36%)
HSVhsv(276, 79%, 59%)
CMYKcmyk(32.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(29.51, 51.52, -51.43)
CIE-LCHlch(29.51, 72.79, 315.05°)
OKLaboklab(41.57% 0.109 -0.1463)
OKLCHoklch(41.57% 0.182 306.7)
XYZxyz(11.5542, 6.0392, 29.8292)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F97 #50971F
analogous
#2A1F97 #661F97 #971F8C
triadic
#661F97 #97661F #1F9766
tetradic
#661F97 #972A1F #50971F #1F8C97
square
#661F97 #972A1F #50971F #1F8C97
split-complementary
#661F97 #8C971F #1F972A
monochromatic
#210A31 #441564 #661F97 #8829CA #A554DC

Accessibility & contrast

On white

9.51
#661F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#661F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F97
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F97#FFFFFF#000000##FFFFFF
##661F971.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#5D3E5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #661f97;
/* rgb */ color: rgb(102, 31, 151);
/* oklch */ color: oklch(41.6% 0.182 306.7);
Tailwind
colors: {
  custom: {
    50: '#9764b6',
    500: '#661f97',
    950: '#000000',
  },
}
SCSS
$custom: #661f97;
$custom-light: #9764b6;
$custom-dark: #000000;
JSON
{
  "hex": "#661f97",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 275.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4157,
    "c": 0.18248,
    "h": 306.7
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#661F97
secondary
#7FBF52
accent
#E93F84
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #661F97

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

Preview Lab → · Contrast checker → · Palette generator →

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