#661878#661878

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

Color values

HEX#661878
RGBrgb(102, 24, 120)
HSLhsl(289, 67%, 28%)
HSVhsv(289, 80%, 47%)
CMYKcmyk(15%, 80%, 0%, 52.9%)
CIE-LABlab(26.26, 47.39, -37.34)
CIE-LCHlch(26.26, 60.33, 321.76°)
OKLaboklab(38.54% 0.1214 -0.1049)
OKLCHoklch(38.54% 0.16 319.2)
XYZxyz(9.1958, 4.8346, 18.2144)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661878 #2A7818
analogous
#361878 #661878 #78185A
triadic
#661878 #786618 #187866
tetradic
#661878 #783618 #2A7818 #185A78
square
#661878 #783618 #2A7818 #185A78
split-complementary
#661878 #5A7818 #187836
monochromatic
#16051A #3B0E45 #661878 #9122AB #B834D6

Accessibility & contrast

On white

10.68
#661878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#661878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661878
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661878#FFFFFF#000000##FFFFFF
##6618781.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #661878;
/* rgb */ color: rgb(102, 24, 120);
/* oklch */ color: oklch(38.5% 0.160 319.2);
Tailwind
colors: {
  custom: {
    50: '#955f9f',
    500: '#661878',
    950: '#000000',
  },
}
SCSS
$custom: #661878;
$custom-light: #955f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#661878",
  "rgb": {
    "r": 102,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 288.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38535,
    "c": 0.16041,
    "h": 319.2
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#661878
secondary
#54AD3F
accent
#EA3E5E
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050F
muted
#7E797E

Preview Lab

Preview with #661878

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

Preview Lab → · Contrast checker → · Palette generator →

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