#661A8B#661A8B

#661A8B is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.2% C 0.176 H 311.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#661A8B
RGBrgb(102, 26, 139)
HSLhsl(280, 68%, 32%)
HSVhsv(280, 81%, 55%)
CMYKcmyk(26.6%, 81.3%, 0%, 45.5%)
CIE-LABlab(27.92, 50.66, -46.60)
CIE-LCHlch(27.92, 68.84, 317.39°)
OKLaboklab(40.16% 0.1161 -0.1321)
OKLCHoklch(40.16% 0.176 311.3)
XYZxyz(10.5082, 5.4279, 24.9152)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661A8B #3F8B1A
analogous
#2E1A8B #661A8B #8B1A78
triadic
#661A8B #8B661A #1A8B66
tetradic
#661A8B #8B2E1A #3F8B1A #1A788B
square
#661A8B #8B2E1A #3F8B1A #1A788B
split-complementary
#661A8B #788B1A #1A8B2E
monochromatic
#1A0724 #401057 #661A8B #8C24BF #AA43DC

Accessibility & contrast

On white

10.07
#661A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#661A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661A8B
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661A8B#FFFFFF#000000##FFFFFF
##661A8B1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#613653
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #661a8b;
/* rgb */ color: rgb(102, 26, 139);
/* oklch */ color: oklch(40.2% 0.176 311.3);
Tailwind
colors: {
  custom: {
    50: '#9661ae',
    500: '#661a8b',
    950: '#000000',
  },
}
SCSS
$custom: #661a8b;
$custom-light: #9661ae;
$custom-dark: #000000;
JSON
{
  "hex": "#661a8b",
  "rgb": {
    "r": 102,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 280.354,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.1759,
    "h": 311.3
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#661A8B
secondary
#6BBD44
accent
#EB3C76
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #661A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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