#661F88#661F88

#661F88 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.4% C 0.168 H 312.0°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#661F88
RGBrgb(102, 31, 136)
HSLhsl(281, 63%, 33%)
HSVhsv(281, 77%, 53%)
CMYKcmyk(25%, 77.2%, 0%, 46.7%)
CIE-LABlab(28.33, 48.15, -44.07)
CIE-LCHlch(28.33, 65.27, 317.54°)
OKLaboklab(40.37% 0.1123 -0.1247)
OKLCHoklch(40.37% 0.168 312)
XYZxyz(10.4126, 5.5826, 23.8168)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F88 #41881F
analogous
#311F88 #661F88 #881F76
triadic
#661F88 #88661F #1F8866
tetradic
#661F88 #88311F #41881F #1F7688
square
#661F88 #88311F #41881F #1F7688
split-complementary
#661F88 #76881F #1F8831
monochromatic
#1B0824 #411456 #661F88 #8B2ABA #A94BD6

Accessibility & contrast

On white

9.92
#661F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#661F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F88
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F88#FFFFFF#000000##FFFFFF
##661F881.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#0E4486
Tritanopia (blue-blind)
#623752
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #661f88;
/* rgb */ color: rgb(102, 31, 136);
/* oklch */ color: oklch(40.4% 0.168 312.0);
Tailwind
colors: {
  custom: {
    50: '#9663ab',
    500: '#661f88',
    950: '#000000',
  },
}
SCSS
$custom: #661f88;
$custom-light: #9663ab;
$custom-dark: #000000;
JSON
{
  "hex": "#661f88",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 280.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40373,
    "c": 0.16778,
    "h": 312
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#661F88
secondary
#6EB94A
accent
#E64277
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661F88

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

Preview Lab → · Contrast checker → · Palette generator →

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