#661F8D#661F8D

#661F8D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.173 H 310.1°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#661F8D
RGBrgb(102, 31, 141)
HSLhsl(279, 64%, 34%)
HSVhsv(279, 78%, 55%)
CMYKcmyk(27.7%, 78%, 0%, 44.7%)
CIE-LABlab(28.72, 49.26, -46.56)
CIE-LCHlch(28.72, 67.78, 316.62°)
OKLaboklab(40.76% 0.1113 -0.132)
OKLCHoklch(40.76% 0.173 310.1)
XYZxyz(10.7762, 5.7281, 25.7321)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F8D #468D1F
analogous
#2F1F8D #661F8D #8D1F7D
triadic
#661F8D #8D661F #1F8D66
tetradic
#661F8D #8D2F1F #468D1F #1F7D8D
square
#661F8D #8D2F1F #468D1F #1F7D8D
split-complementary
#661F8D #7D8D1F #1F8D2F
monochromatic
#1D0929 #42145B #661F8D #8A2ABF #A74ED8

Accessibility & contrast

On white

9.79
#661F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#661F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F8D
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F8D#FFFFFF#000000##FFFFFF
##661F8D1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#603A55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #661f8d;
/* rgb */ color: rgb(102, 31, 141);
/* oklch */ color: oklch(40.8% 0.173 310.1);
Tailwind
colors: {
  custom: {
    50: '#9663af',
    500: '#661f8d',
    950: '#000000',
  },
}
SCSS
$custom: #661f8d;
$custom-light: #9663af;
$custom-dark: #000000;
JSON
{
  "hex": "#661f8d",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 278.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40762,
    "c": 0.17267,
    "h": 310.1
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#661F8D
secondary
#74BB4D
accent
#E7417C
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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