#661F98#661F98

#661F98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.183 H 306.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#661F98
RGBrgb(102, 31, 152)
HSLhsl(275, 66%, 36%)
HSVhsv(275, 80%, 60%)
CMYKcmyk(32.9%, 79.6%, 0%, 40.4%)
CIE-LABlab(29.59, 51.75, -51.91)
CIE-LCHlch(29.59, 73.29, 314.91°)
OKLaboklab(41.65% 0.1088 -0.1477)
OKLCHoklch(41.65% 0.183 306.4)
XYZxyz(11.6357, 6.0719, 30.2587)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F98 #51981F
analogous
#2A1F98 #661F98 #981F8D
triadic
#661F98 #98661F #1F9866
tetradic
#661F98 #982A1F #51981F #1F8D98
square
#661F98 #982A1F #51981F #1F8D98
split-complementary
#661F98 #8D981F #1F982A
monochromatic
#220A32 #441565 #661F98 #8829CB #A455DC

Accessibility & contrast

On white

9.48
#661F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#661F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F98
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F98#FFFFFF#000000##FFFFFF
##661F981.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#5D3E5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #661f98;
/* rgb */ color: rgb(102, 31, 152);
/* oklch */ color: oklch(41.7% 0.183 306.4);
Tailwind
colors: {
  custom: {
    50: '#9764b7',
    500: '#661f98',
    950: '#000000',
  },
}
SCSS
$custom: #661f98;
$custom-light: #9764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#661f98",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 275.207,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41653,
    "c": 0.18347,
    "h": 306.4
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#661F98
secondary
#80C053
accent
#E93F85
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #661F98

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

Preview Lab → · Contrast checker → · Palette generator →

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