#661998#661998

#661998 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.189 H 306.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#661998
RGBrgb(102, 25, 152)
HSLhsl(276, 72%, 35%)
HSVhsv(276, 84%, 60%)
CMYKcmyk(32.9%, 83.6%, 0%, 40.4%)
CIE-LABlab(28.87, 53.85, -53.09)
CIE-LCHlch(28.87, 75.62, 315.41°)
OKLaboklab(41.15% 0.1135 -0.1511)
OKLCHoklch(41.15% 0.189 306.9)
XYZxyz(11.4934, 5.7872, 30.2112)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661998 #4B9819
analogous
#271998 #661998 #98198B
triadic
#661998 #986619 #199866
tetradic
#661998 #982719 #4B9819 #198B98
square
#661998 #982719 #4B9819 #198B98
split-complementary
#661998 #8B9819 #199827
monochromatic
#1F082F #431063 #661998 #8922CD #A64AE1

Accessibility & contrast

On white

9.73
#661998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#661998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661998
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661998#FFFFFF#000000##FFFFFF
##6619981.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #661998;
/* rgb */ color: rgb(102, 25, 152);
/* oklch */ color: oklch(41.1% 0.189 306.9);
Tailwind
colors: {
  custom: {
    50: '#9761b7',
    500: '#661998',
    950: '#000000',
  },
}
SCSS
$custom: #661998;
$custom-light: #9761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#661998",
  "rgb": {
    "r": 102,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 276.378,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41148,
    "c": 0.18901,
    "h": 306.9
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#661998
secondary
#7AC34A
accent
#EE3981
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #661998

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

Preview Lab → · Contrast checker → · Palette generator →

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