#661782#661782

#661782 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 39.2% C 0.170 H 315.0°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#661782
RGBrgb(102, 23, 130)
HSLhsl(284, 70%, 30%)
HSVhsv(284, 82%, 51%)
CMYKcmyk(21.5%, 82.3%, 0%, 49%)
CIE-LABlab(26.88, 49.77, -42.67)
CIE-LCHlch(26.88, 65.55, 319.39°)
OKLaboklab(39.2% 0.1205 -0.1205)
OKLCHoklch(39.2% 0.17 315)
XYZxyz(9.8145, 5.0496, 21.5725)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661782 #338217
analogous
#301782 #661782 #821769
triadic
#661782 #826617 #178266
tetradic
#661782 #823017 #338217 #176982
square
#661782 #823017 #338217 #176982
split-complementary
#661782 #698217 #178230
monochromatic
#14051A #3D0E4E #661782 #8F20B6 #B138DC

Accessibility & contrast

On white

10.45
#661782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#661782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661782
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661782#FFFFFF#000000##FFFFFF
##6617821.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#104180
Tritanopia (blue-blind)
#64314D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #661782;
/* rgb */ color: rgb(102, 23, 130);
/* oklch */ color: oklch(39.2% 0.170 315.0);
Tailwind
colors: {
  custom: {
    50: '#965fa7',
    500: '#661782',
    950: '#000000',
  },
}
SCSS
$custom: #661782;
$custom-light: #965fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#661782",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 284.299,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.39203,
    "c": 0.17046,
    "h": 315
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#661782
secondary
#5EB63E
accent
#ED3B6A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #661782

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

Preview Lab → · Contrast checker → · Palette generator →

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