#661A7F#661A7F

#661A7F is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.2% C 0.165 H 316.0°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#661A7F
RGBrgb(102, 26, 127)
HSLhsl(285, 66%, 30%)
HSVhsv(285, 80%, 50%)
CMYKcmyk(19.7%, 79.5%, 0%, 50.2%)
CIE-LABlab(27.01, 48.11, -40.57)
CIE-LCHlch(27.01, 62.93, 319.86°)
OKLaboklab(39.23% 0.1185 -0.1144)
OKLCHoklch(39.23% 0.165 316)
XYZxyz(9.6790, 5.0963, 20.5484)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661A7F #337F1A
analogous
#341A7F #661A7F #7F1A65
triadic
#661A7F #7F661A #1A7F66
tetradic
#661A7F #7F341A #337F1A #1A657F
square
#661A7F #7F341A #337F1A #1A657F
split-complementary
#661A7F #657F1A #1A7F34
monochromatic
#140519 #3D104C #661A7F #8F24B2 #B13CD7

Accessibility & contrast

On white

10.40
#661A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#661A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661A7F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661A7F#FFFFFF#000000##FFFFFF
##661A7F1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#18427D
Tritanopia (blue-blind)
#64314C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661a7f;
/* rgb */ color: rgb(102, 26, 127);
/* oklch */ color: oklch(39.2% 0.165 316.0);
Tailwind
colors: {
  custom: {
    50: '#9560a5',
    500: '#661a7f',
    950: '#000000',
  },
}
SCSS
$custom: #661a7f;
$custom-light: #9560a5;
$custom-dark: #000000;
JSON
{
  "hex": "#661a7f",
  "rgb": {
    "r": 102,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 285.149,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.39225,
    "c": 0.1647,
    "h": 316
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#661A7F
secondary
#5EB342
accent
#E93F69
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #661A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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