#661B7D#661B7D

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

Color values

HEX#661B7D
RGBrgb(102, 27, 125)
HSLhsl(286, 64%, 30%)
HSVhsv(286, 78%, 49%)
CMYKcmyk(18.4%, 78.4%, 0%, 51%)
CIE-LABlab(26.99, 47.33, -39.34)
CIE-LCHlch(26.99, 61.54, 320.27°)
OKLaboklab(39.17% 0.1179 -0.1108)
OKLCHoklch(39.17% 0.162 316.8)
XYZxyz(9.5725, 5.0897, 19.8762)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B7D #327D1B
analogous
#351B7D #661B7D #7D1B63
triadic
#661B7D #7D661B #1B7D66
tetradic
#661B7D #7D351B #327D1B #1B637D
square
#661B7D #7D351B #327D1B #1B637D
split-complementary
#661B7D #637D1B #1B7D35
monochromatic
#150519 #3D104B #661B7D #8F26AF #B13DD5

Accessibility & contrast

On white

10.41
#661B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661B7D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661B7D#FFFFFF#000000##FFFFFF
##661B7D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#1C427B
Tritanopia (blue-blind)
#65304B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661b7d;
/* rgb */ color: rgb(102, 27, 125);
/* oklch */ color: oklch(39.2% 0.162 316.8);
Tailwind
colors: {
  custom: {
    50: '#9560a3',
    500: '#661b7d',
    950: '#000000',
  },
}
SCSS
$custom: #661b7d;
$custom-light: #9560a3;
$custom-dark: #000000;
JSON
{
  "hex": "#661b7d",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 285.918,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39166,
    "c": 0.16176,
    "h": 316.8
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#661B7D
secondary
#5DB143
accent
#E74068
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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