#661F81#661F81

#661F81 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.8% C 0.161 H 314.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#661F81
RGBrgb(102, 31, 129)
HSLhsl(283, 61%, 31%)
HSVhsv(283, 76%, 51%)
CMYKcmyk(20.9%, 76%, 0%, 49.4%)
CIE-LABlab(27.82, 46.63, -40.52)
CIE-LCHlch(27.82, 61.77, 319.01°)
OKLaboklab(39.85% 0.1134 -0.1143)
OKLCHoklch(39.85% 0.161 314.8)
XYZxyz(9.9313, 5.3901, 21.2819)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F81 #3A811F
analogous
#351F81 #661F81 #811F6B
triadic
#661F81 #81661F #1F8166
tetradic
#661F81 #81351F #3A811F #1F6B81
square
#661F81 #81351F #3A811F #1F6B81
split-complementary
#661F81 #6B811F #1F8135
monochromatic
#18071E #3F1350 #661F81 #8D2BB2 #AC47D3

Accessibility & contrast

On white

10.11
#661F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#661F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F81
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F81#FFFFFF#000000##FFFFFF
##661F811.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#1A437F
Tritanopia (blue-blind)
#64344E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #661f81;
/* rgb */ color: rgb(102, 31, 129);
/* oklch */ color: oklch(39.8% 0.161 314.8);
Tailwind
colors: {
  custom: {
    50: '#9562a6',
    500: '#661f81',
    950: '#000000',
  },
}
SCSS
$custom: #661f81;
$custom-light: #9562a6;
$custom-dark: #000000;
JSON
{
  "hex": "#661f81",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 283.469,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39845,
    "c": 0.16097,
    "h": 314.8
  },
  "luminance": 0.0539
}

Semantic roles & 50–950 ramp

primary
#661F81
secondary
#66B448
accent
#E44370
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #661F81

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

Preview Lab → · Contrast checker → · Palette generator →

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