#661D8B#661D8B

#661D8B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.173 H 311.1°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#661D8B
RGBrgb(102, 29, 139)
HSLhsl(280, 65%, 33%)
HSVhsv(280, 79%, 55%)
CMYKcmyk(26.6%, 79.1%, 0%, 45.5%)
CIE-LABlab(28.30, 49.58, -46.00)
CIE-LCHlch(28.30, 67.63, 317.15°)
OKLaboklab(40.42% 0.1135 -0.1303)
OKLCHoklch(40.42% 0.173 311.1)
XYZxyz(10.5782, 5.5679, 24.9386)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661D8B #428B1D
analogous
#2F1D8B #661D8B #8B1D79
triadic
#661D8B #8B661D #1D8B66
tetradic
#661D8B #8B2F1D #428B1D #1D798B
square
#661D8B #8B2F1D #428B1D #1D798B
split-complementary
#661D8B #798B1D #1D8B2F
monochromatic
#1C0826 #411258 #661D8B #8B28BE #A949D9

Accessibility & contrast

On white

9.94
#661D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#661D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661D8B
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661D8B#FFFFFF#000000##FFFFFF
##661D8B1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#024489
Tritanopia (blue-blind)
#613854
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #661d8b;
/* rgb */ color: rgb(102, 29, 139);
/* oklch */ color: oklch(40.4% 0.173 311.1);
Tailwind
colors: {
  custom: {
    50: '#9662ae',
    500: '#661d8b',
    950: '#000000',
  },
}
SCSS
$custom: #661d8b;
$custom-light: #9662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#661d8b",
  "rgb": {
    "r": 102,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 279.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40418,
    "c": 0.17287,
    "h": 311.1
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#661D8B
secondary
#6FBB49
accent
#E83F78
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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