#661B8E#661B8E

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

Color values

HEX#661B8E
RGBrgb(102, 27, 142)
HSLhsl(279, 68%, 33%)
HSVhsv(279, 81%, 56%)
CMYKcmyk(28.2%, 81%, 0%, 44.3%)
CIE-LABlab(28.28, 50.97, -47.88)
CIE-LCHlch(28.28, 69.93, 316.79°)
OKLaboklab(40.48% 0.1146 -0.1359)
OKLCHoklch(40.48% 0.178 310.1)
XYZxyz(10.7529, 5.5619, 26.0930)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661B8E #438E1B
analogous
#2C1B8E #661B8E #8E1B7C
triadic
#661B8E #8E661B #1B8E66
tetradic
#661B8E #8E2C1B #438E1B #1B7C8E
square
#661B8E #8E2C1B #438E1B #1B7C8E
split-complementary
#661B8E #7C8E1B #1B8E2C
monochromatic
#1C0727 #41115B #661B8E #8B25C1 #A847DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##661B8E#FFFFFF#000000##FFFFFF
##661B8E1.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)
#004091
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#603855
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #661b8e;
/* rgb */ color: rgb(102, 27, 142);
/* oklch */ color: oklch(40.5% 0.178 310.1);
Tailwind
colors: {
  custom: {
    50: '#9661b0',
    500: '#661b8e',
    950: '#000000',
  },
}
SCSS
$custom: #661b8e;
$custom-light: #9661b0;
$custom-dark: #000000;
JSON
{
  "hex": "#661b8e",
  "rgb": {
    "r": 102,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 279.13,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4048,
    "c": 0.17775,
    "h": 310.1
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#661B8E
secondary
#70BE47
accent
#EB3D79
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #661B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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