#661F9C#661F9C

#661F9C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.187 H 305.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#661F9C
RGBrgb(102, 31, 156)
HSLhsl(274, 67%, 37%)
HSVhsv(274, 80%, 61%)
CMYKcmyk(34.6%, 80.1%, 0%, 38.8%)
CIE-LABlab(29.92, 52.67, -53.81)
CIE-LCHlch(29.92, 75.30, 314.38°)
OKLaboklab(41.99% 0.1077 -0.1533)
OKLCHoklch(41.99% 0.187 305.1)
XYZxyz(11.9689, 6.2051, 32.0132)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F9C #559C1F
analogous
#281F9C #661F9C #9C1F94
triadic
#661F9C #9C661F #1F9C66
tetradic
#661F9C #9C281F #559C1F #1F949C
square
#661F9C #9C281F #559C1F #1F949C
split-complementary
#661F9C #949C1F #1F9C28
monochromatic
#230B36 #451569 #661F9C #8729CF #A458DE

Accessibility & contrast

On white

9.37
#661F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#661F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F9C
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F9C#FFFFFF#000000##FFFFFF
##661F9C1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#5C405E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #661f9c;
/* rgb */ color: rgb(102, 31, 156);
/* oklch */ color: oklch(42.0% 0.187 305.1);
Tailwind
colors: {
  custom: {
    50: '#9764ba',
    500: '#661f9c',
    950: '#000000',
  },
}
SCSS
$custom: #661f9c;
$custom-light: #9764ba;
$custom-dark: #000000;
JSON
{
  "hex": "#661f9c",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 274.08,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41987,
    "c": 0.18739,
    "h": 305.1
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#661F9C
secondary
#84C155
accent
#EA3E88
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #661F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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