#661B98#661B98

#661B98 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.187 H 306.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#661B98
RGBrgb(102, 27, 152)
HSLhsl(276, 70%, 35%)
HSVhsv(276, 82%, 60%)
CMYKcmyk(32.9%, 82.2%, 0%, 40.4%)
CIE-LABlab(29.10, 53.19, -52.71)
CIE-LCHlch(29.10, 74.88, 315.26°)
OKLaboklab(41.31% 0.112 -0.1501)
OKLCHoklch(41.31% 0.187 306.7)
XYZxyz(11.5377, 5.8758, 30.2260)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B98 #4D981B
analogous
#281B98 #661B98 #981B8B
triadic
#661B98 #98661B #1B9866
tetradic
#661B98 #98281B #4D981B #1B8B98
square
#661B98 #98281B #4D981B #1B8B98
split-complementary
#661B98 #8B981B #1B9828
monochromatic
#200930 #431264 #661B98 #8924CC #A54EE0

Accessibility & contrast

On white

9.65
#661B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#661B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661B98
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661B98#FFFFFF#000000##FFFFFF
##661B981.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #661b98;
/* rgb */ color: rgb(102, 27, 152);
/* oklch */ color: oklch(41.3% 0.187 306.7);
Tailwind
colors: {
  custom: {
    50: '#9762b7',
    500: '#661b98',
    950: '#000000',
  },
}
SCSS
$custom: #661b98;
$custom-light: #9762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#661b98",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 276,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41306,
    "c": 0.18726,
    "h": 306.7
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#661B98
secondary
#7CC24D
accent
#ED3B82
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #661B98

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

Preview Lab → · Contrast checker → · Palette generator →

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