#661F8A#661F8A

#661F8A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.170 H 311.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#661F8A
RGBrgb(102, 31, 138)
HSLhsl(280, 63%, 33%)
HSVhsv(280, 78%, 54%)
CMYKcmyk(26.1%, 77.5%, 0%, 45.9%)
CIE-LABlab(28.49, 48.59, -45.07)
CIE-LCHlch(28.49, 66.27, 317.15°)
OKLaboklab(40.53% 0.1119 -0.1276)
OKLCHoklch(40.53% 0.17 311.2)
XYZxyz(10.5560, 5.6400, 24.5724)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F8A #438A1F
analogous
#301F8A #661F8A #8A1F78
triadic
#661F8A #8A661F #1F8A66
tetradic
#661F8A #8A301F #438A1F #1F788A
square
#661F8A #8A301F #438A1F #1F788A
split-complementary
#661F8A #788A1F #1F8A30
monochromatic
#1C0926 #411458 #661F8A #8B2ABC #A84CD7

Accessibility & contrast

On white

9.87
#661F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#661F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F8A
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F8A#FFFFFF#000000##FFFFFF
##661F8A1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#094488
Tritanopia (blue-blind)
#613853
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #661f8a;
/* rgb */ color: rgb(102, 31, 138);
/* oklch */ color: oklch(40.5% 0.170 311.2);
Tailwind
colors: {
  custom: {
    50: '#9663ad',
    500: '#661f8a',
    950: '#000000',
  },
}
SCSS
$custom: #661f8a;
$custom-light: #9663ad;
$custom-dark: #000000;
JSON
{
  "hex": "#661f8a",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 279.813,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40528,
    "c": 0.16974,
    "h": 311.2
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#661F8A
secondary
#70BA4B
accent
#E64179
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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