#661F78#661F78

#661F78 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.2% C 0.152 H 318.7°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#661F78
RGBrgb(102, 31, 120)
HSLhsl(288, 59%, 30%)
HSVhsv(288, 74%, 47%)
CMYKcmyk(15%, 74.2%, 0%, 52.9%)
CIE-LABlab(27.19, 44.73, -35.85)
CIE-LCHlch(27.19, 57.32, 321.29°)
OKLaboklab(39.2% 0.1144 -0.1006)
OKLCHoklch(39.2% 0.152 318.7)
XYZxyz(9.3592, 5.1613, 18.2689)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F78 #31781F
analogous
#3A1F78 #661F78 #781F5E
triadic
#661F78 #78661F #1F7866
tetradic
#661F78 #783A1F #31781F #1F5E78
square
#661F78 #783A1F #31781F #1F5E78
split-complementary
#661F78 #5E781F #1F783A
monochromatic
#150618 #3D1247 #661F78 #8F2CA9 #B243CE

Accessibility & contrast

On white

10.33
#661F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#661F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F78
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F78#FFFFFF#000000##FFFFFF
##661F781.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#244376
Tritanopia (blue-blind)
#663049
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661f78;
/* rgb */ color: rgb(102, 31, 120);
/* oklch */ color: oklch(39.2% 0.152 318.7);
Tailwind
colors: {
  custom: {
    50: '#95629f',
    500: '#661f78',
    950: '#000000',
  },
}
SCSS
$custom: #661f78;
$custom-light: #95629f;
$custom-dark: #000000;
JSON
{
  "hex": "#661f78",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 287.865,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39197,
    "c": 0.15231,
    "h": 318.7
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#661F78
secondary
#5CAB47
accent
#E24665
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E050E
muted
#7E7A7E

Preview Lab

Preview with #661F78

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

Preview Lab → · Contrast checker → · Palette generator →

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