#661F9B#661F9B

#661F9B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.186 H 305.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#661F9B
RGBrgb(102, 31, 155)
HSLhsl(274, 67%, 36%)
HSVhsv(274, 80%, 61%)
CMYKcmyk(34.2%, 80%, 0%, 39.2%)
CIE-LABlab(29.84, 52.44, -53.34)
CIE-LCHlch(29.84, 74.79, 314.51°)
OKLaboklab(41.9% 0.108 -0.1519)
OKLCHoklch(41.9% 0.186 305.4)
XYZxyz(11.8845, 6.1714, 31.5691)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F9B #549B1F
analogous
#281F9B #661F9B #9B1F92
triadic
#661F9B #9B661F #1F9B66
tetradic
#661F9B #9B281F #549B1F #1F929B
square
#661F9B #9B281F #549B1F #1F929B
split-complementary
#661F9B #929B1F #1F9B28
monochromatic
#230B35 #441568 #661F9B #8829CE #A457DD

Accessibility & contrast

On white

9.40
#661F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#661F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F9B
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F9B#FFFFFF#000000##FFFFFF
##661F9B1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#5C405D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #661f9b;
/* rgb */ color: rgb(102, 31, 155);
/* oklch */ color: oklch(41.9% 0.186 305.4);
Tailwind
colors: {
  custom: {
    50: '#9764b9',
    500: '#661f9b',
    950: '#000000',
  },
}
SCSS
$custom: #661f9b;
$custom-light: #9764b9;
$custom-dark: #000000;
JSON
{
  "hex": "#661f9b",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 274.355,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41903,
    "c": 0.18641,
    "h": 305.4
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#661F9B
secondary
#83C155
accent
#EA3E87
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #661F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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