#661FA6#661FA6

#661FA6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.197 H 302.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#661FA6
RGBrgb(102, 31, 166)
HSLhsl(272, 69%, 39%)
HSVhsv(272, 81%, 65%)
CMYKcmyk(38.6%, 81.3%, 0%, 34.9%)
CIE-LABlab(30.78, 54.99, -58.48)
CIE-LCHlch(30.78, 80.28, 313.24°)
OKLaboklab(42.85% 0.1049 -0.167)
OKLCHoklch(42.85% 0.197 302.1)
XYZxyz(12.8507, 6.5579, 36.6578)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661FA6 #5FA61F
analogous
#231FA6 #661FA6 #A61FA2
triadic
#661FA6 #A6661F #1FA666
tetradic
#661FA6 #A6231F #5FA61F #1FA2A6
square
#661FA6 #A6231F #5FA61F #1FA2A6
split-complementary
#661FA6 #A2A61F #1FA623
monochromatic
#270C3F #461572 #661FA6 #862BD7 #A35EE1

Accessibility & contrast

On white

9.08
#661FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#661FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661FA6
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661FA6#FFFFFF#000000##FFFFFF
##661FA61.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#584463
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #661fa6;
/* rgb */ color: rgb(102, 31, 166);
/* oklch */ color: oklch(42.8% 0.197 302.1);
Tailwind
colors: {
  custom: {
    50: '#9864c1',
    500: '#661fa6',
    950: '#000000',
  },
}
SCSS
$custom: #661fa6;
$custom-light: #9864c1;
$custom-dark: #000000;
JSON
{
  "hex": "#661fa6",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 271.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42846,
    "c": 0.19724,
    "h": 302.1
  },
  "luminance": 0.06558
}

Semantic roles & 50–950 ramp

primary
#661FA6
secondary
#8EC55B
accent
#EB3C8F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #661FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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