#661FA7#661FA7

#661FA7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.9% C 0.198 H 301.8°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#661FA7
RGBrgb(102, 31, 167)
HSLhsl(271, 69%, 39%)
HSVhsv(271, 81%, 65%)
CMYKcmyk(38.9%, 81.4%, 0%, 34.5%)
CIE-LABlab(30.87, 55.23, -58.94)
CIE-LCHlch(30.87, 80.77, 313.14°)
OKLaboklab(42.93% 0.1046 -0.1684)
OKLCHoklch(42.93% 0.198 301.8)
XYZxyz(12.9428, 6.5947, 37.1428)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661FA7 #60A71F
analogous
#221FA7 #661FA7 #A71FA4
triadic
#661FA7 #A7661F #1FA766
tetradic
#661FA7 #A7221F #60A71F #1FA4A7
square
#661FA7 #A7221F #60A71F #1FA4A7
split-complementary
#661FA7 #A4A71F #1FA722
monochromatic
#270C40 #461573 #661FA7 #852BD8 #A35FE1

Accessibility & contrast

On white

9.06
#661FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#661FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661FA7
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661FA7#FFFFFF#000000##FFFFFF
##661FA71.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#584564
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #661fa7;
/* rgb */ color: rgb(102, 31, 167);
/* oklch */ color: oklch(42.9% 0.198 301.8);
Tailwind
colors: {
  custom: {
    50: '#9864c2',
    500: '#661fa7',
    950: '#000000',
  },
}
SCSS
$custom: #661fa7;
$custom-light: #9864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#661fa7",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 271.324,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42934,
    "c": 0.19822,
    "h": 301.8
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#661FA7
secondary
#8FC65C
accent
#EC3C90
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0613
muted
#7E7A82

Preview Lab

Preview with #661FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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