#661778#661778

#661778 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.5% C 0.161 H 319.2°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#661778
RGBrgb(102, 23, 120)
HSLhsl(289, 68%, 28%)
HSVhsv(289, 81%, 47%)
CMYKcmyk(15%, 80.8%, 0%, 52.9%)
CIE-LABlab(26.14, 47.73, -37.53)
CIE-LCHlch(26.14, 60.72, 321.82°)
OKLaboklab(38.45% 0.1223 -0.1054)
OKLCHoklch(38.45% 0.161 319.2)
XYZxyz(9.1756, 4.7941, 18.2077)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661778 #297817
analogous
#351778 #661778 #781759
triadic
#661778 #786617 #177866
tetradic
#661778 #783517 #297817 #175978
square
#661778 #783517 #297817 #175978
split-complementary
#661778 #597817 #177835
monochromatic
#16051A #3A0D45 #661778 #9221AB #B932D8

Accessibility & contrast

On white

10.72
#661778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#661778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661778
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661778#FFFFFF#000000##FFFFFF
##6617781.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#1F4076
Tritanopia (blue-blind)
#662C47
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #661778;
/* rgb */ color: rgb(102, 23, 120);
/* oklch */ color: oklch(38.5% 0.161 319.2);
Tailwind
colors: {
  custom: {
    50: '#955f9f',
    500: '#661778',
    950: '#000000',
  },
}
SCSS
$custom: #661778;
$custom-light: #955f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#661778",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 288.866,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.38452,
    "c": 0.16145,
    "h": 319.2
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#661778
secondary
#52AD3E
accent
#EB3D5D
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050F
muted
#7E797E

Preview Lab

Preview with #661778

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

Preview Lab → · Contrast checker → · Palette generator →

#661778 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva