#661E8B#661E8B

#661E8B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.172 H 311.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#661E8B
RGBrgb(102, 30, 139)
HSLhsl(280, 64%, 33%)
HSVhsv(280, 78%, 55%)
CMYKcmyk(26.6%, 78.4%, 0%, 45.5%)
CIE-LABlab(28.43, 49.20, -45.78)
CIE-LCHlch(28.43, 67.21, 317.06°)
OKLaboklab(40.51% 0.1126 -0.1297)
OKLCHoklch(40.51% 0.172 311)
XYZxyz(10.6031, 5.6177, 24.9469)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661E8B #438B1E
analogous
#2F1E8B #661E8B #8B1E79
triadic
#661E8B #8B661E #1E8B66
tetradic
#661E8B #8B2F1E #438B1E #1E798B
square
#661E8B #8B2F1E #438B1E #1E798B
split-complementary
#661E8B #798B1E #1E8B2F
monochromatic
#1C0826 #411359 #661E8B #8B29BD #A84BD8

Accessibility & contrast

On white

9.89
#661E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#661E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661E8B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661E8B#FFFFFF#000000##FFFFFF
##661E8B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #661e8b;
/* rgb */ color: rgb(102, 30, 139);
/* oklch */ color: oklch(40.5% 0.172 311.0);
Tailwind
colors: {
  custom: {
    50: '#9662ae',
    500: '#661e8b',
    950: '#000000',
  },
}
SCSS
$custom: #661e8b;
$custom-light: #9662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#661e8b",
  "rgb": {
    "r": 102,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 279.633,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4051,
    "c": 0.1718,
    "h": 311
  },
  "luminance": 0.05617
}

Semantic roles & 50–950 ramp

primary
#661E8B
secondary
#70BB4A
accent
#E74079
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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