#661F9F#661F9F

#661F9F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.190 H 304.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#661F9F
RGBrgb(102, 31, 159)
HSLhsl(273, 67%, 37%)
HSVhsv(273, 81%, 62%)
CMYKcmyk(35.8%, 80.5%, 0%, 37.6%)
CIE-LABlab(30.18, 53.36, -55.23)
CIE-LCHlch(30.18, 76.79, 314.02°)
OKLaboklab(42.24% 0.1069 -0.1575)
OKLCHoklch(42.24% 0.19 304.2)
XYZxyz(12.2260, 6.3080, 33.3676)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F9F #589F1F
analogous
#261F9F #661F9F #9F1F98
triadic
#661F9F #9F661F #1F9F66
tetradic
#661F9F #9F261F #589F1F #1F989F
square
#661F9F #9F261F #589F1F #1F989F
split-complementary
#661F9F #989F1F #1F9F26
monochromatic
#240B39 #45156C #661F9F #8729D2 #A35ADF

Accessibility & contrast

On white

9.29
#661F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#661F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F9F
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F9F#FFFFFF#000000##FFFFFF
##661F9F1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#5B415F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #661f9f;
/* rgb */ color: rgb(102, 31, 159);
/* oklch */ color: oklch(42.2% 0.190 304.2);
Tailwind
colors: {
  custom: {
    50: '#9764bc',
    500: '#661f9f',
    950: '#000000',
  },
}
SCSS
$custom: #661f9f;
$custom-light: #9764bc;
$custom-dark: #000000;
JSON
{
  "hex": "#661f9f",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 273.281,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42242,
    "c": 0.19035,
    "h": 304.2
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#661F9F
secondary
#87C357
accent
#EA3E8A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #661F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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