#661D8E#661D8E

#661D8E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.176 H 310.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#661D8E
RGBrgb(102, 29, 142)
HSLhsl(279, 66%, 34%)
HSVhsv(279, 80%, 56%)
CMYKcmyk(28.2%, 79.6%, 0%, 44.3%)
CIE-LABlab(28.53, 50.24, -47.48)
CIE-LCHlch(28.53, 69.13, 316.62°)
OKLaboklab(40.66% 0.1129 -0.1347)
OKLCHoklch(40.66% 0.176 310)
XYZxyz(10.8004, 5.6567, 26.1088)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661D8E #458E1D
analogous
#2D1D8E #661D8E #8E1D7D
triadic
#661D8E #8E661D #1D8E66
tetradic
#661D8E #8E2D1D #458E1D #1D7D8E
square
#661D8E #8E2D1D #458E1D #1D7D8E
split-complementary
#661D8E #7D8E1D #1D8E2D
monochromatic
#1D0828 #41135B #661D8E #8B27C1 #A84BDA

Accessibility & contrast

On white

9.85
#661D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#661D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661D8E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661D8E#FFFFFF#000000##FFFFFF
##661D8E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#603955
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #661d8e;
/* rgb */ color: rgb(102, 29, 142);
/* oklch */ color: oklch(40.7% 0.176 310.0);
Tailwind
colors: {
  custom: {
    50: '#9662b0',
    500: '#661d8e',
    950: '#000000',
  },
}
SCSS
$custom: #661d8e;
$custom-light: #9662b0;
$custom-dark: #000000;
JSON
{
  "hex": "#661d8e",
  "rgb": {
    "r": 102,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 278.761,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.17575,
    "h": 310
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#661D8E
secondary
#73BD4A
accent
#E93F7B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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