#661A98#661A98

#661A98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.2% C 0.188 H 306.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#661A98
RGBrgb(102, 26, 152)
HSLhsl(276, 71%, 35%)
HSVhsv(276, 83%, 60%)
CMYKcmyk(32.9%, 82.9%, 0%, 40.4%)
CIE-LABlab(28.98, 53.52, -52.90)
CIE-LCHlch(28.98, 75.26, 315.33°)
OKLaboklab(41.23% 0.1128 -0.1506)
OKLCHoklch(41.23% 0.188 306.8)
XYZxyz(11.5151, 5.8307, 30.2185)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661A98 #4C981A
analogous
#271A98 #661A98 #981A8B
triadic
#661A98 #98661A #1A9866
tetradic
#661A98 #98271A #4C981A #1A8B98
square
#661A98 #98271A #4C981A #1A8B98
split-complementary
#661A98 #8B981A #1A9827
monochromatic
#20082F #431164 #661A98 #8923CC #A64CE0

Accessibility & contrast

On white

9.69
#661A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#661A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661A98
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661A98#FFFFFF#000000##FFFFFF
##661A981.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#5D3C5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #661a98;
/* rgb */ color: rgb(102, 26, 152);
/* oklch */ color: oklch(41.2% 0.188 306.8);
Tailwind
colors: {
  custom: {
    50: '#9762b7',
    500: '#661a98',
    950: '#000000',
  },
}
SCSS
$custom: #661a98;
$custom-light: #9762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#661a98",
  "rgb": {
    "r": 102,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 276.19,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41226,
    "c": 0.18815,
    "h": 306.8
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#661A98
secondary
#7BC24B
accent
#EE3A81
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #661A98

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

Preview Lab → · Contrast checker → · Palette generator →

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