#661B7E#661B7E

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

Color values

HEX#661B7E
RGBrgb(102, 27, 126)
HSLhsl(285, 65%, 30%)
HSVhsv(285, 79%, 49%)
CMYKcmyk(19%, 78.6%, 0%, 50.6%)
CIE-LABlab(27.06, 47.54, -39.85)
CIE-LCHlch(27.06, 62.03, 320.03°)
OKLaboklab(39.24% 0.1177 -0.1123)
OKLCHoklch(39.24% 0.163 316.4)
XYZxyz(9.6367, 5.1154, 20.2144)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B7E #337E1B
analogous
#351B7E #661B7E #7E1B64
triadic
#661B7E #7E661B #1B7E66
tetradic
#661B7E #7E351B #337E1B #1B647E
square
#661B7E #7E351B #337E1B #1B647E
split-complementary
#661B7E #647E1B #1B7E35
monochromatic
#140519 #3D104C #661B7E #8F26B0 #B13ED6

Accessibility & contrast

On white

10.38
#661B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661B7E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661B7E#FFFFFF#000000##FFFFFF
##661B7E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#1B427C
Tritanopia (blue-blind)
#64314C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661b7e;
/* rgb */ color: rgb(102, 27, 126);
/* oklch */ color: oklch(39.2% 0.163 316.4);
Tailwind
colors: {
  custom: {
    50: '#9560a4',
    500: '#661b7e',
    950: '#000000',
  },
}
SCSS
$custom: #661b7e;
$custom-light: #9560a4;
$custom-dark: #000000;
JSON
{
  "hex": "#661b7e",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 285.455,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.3924,
    "c": 0.16269,
    "h": 316.4
  },
  "luminance": 0.05115
}

Semantic roles & 50–950 ramp

primary
#661B7E
secondary
#5EB243
accent
#E84069
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #661B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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