#661887#661887

#661887 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.7% C 0.174 H 313.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#661887
RGBrgb(102, 24, 135)
HSLhsl(282, 70%, 31%)
HSVhsv(282, 82%, 53%)
CMYKcmyk(24.4%, 82.2%, 0%, 47.1%)
CIE-LABlab(27.37, 50.48, -45.00)
CIE-LCHlch(27.37, 67.63, 318.29°)
OKLaboklab(39.67% 0.1187 -0.1274)
OKLCHoklch(39.67% 0.174 313)
XYZxyz(10.1785, 5.2276, 23.3898)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661887 #398718
analogous
#2E1887 #661887 #871870
triadic
#661887 #876618 #188766
tetradic
#661887 #872E18 #398718 #187087
square
#661887 #872E18 #398718 #187087
split-complementary
#661887 #708718 #18872E
monochromatic
#17061F #3F0F53 #661887 #8D21BB #AD3DDC

Accessibility & contrast

On white

10.27
#661887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#661887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661887
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661887#FFFFFF#000000##FFFFFF
##6618871.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#054285
Tritanopia (blue-blind)
#623450
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #661887;
/* rgb */ color: rgb(102, 24, 135);
/* oklch */ color: oklch(39.7% 0.174 313.0);
Tailwind
colors: {
  custom: {
    50: '#9660ab',
    500: '#661887',
    950: '#000000',
  },
}
SCSS
$custom: #661887;
$custom-light: #9660ab;
$custom-dark: #000000;
JSON
{
  "hex": "#661887",
  "rgb": {
    "r": 102,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 282.162,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39673,
    "c": 0.17409,
    "h": 313
  },
  "luminance": 0.05227
}

Semantic roles & 50–950 ramp

primary
#661887
secondary
#65BB40
accent
#ED3B70
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #661887

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

Preview Lab → · Contrast checker → · Palette generator →

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