#661F8E#661F8E

#661F8E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.174 H 309.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#661F8E
RGBrgb(102, 31, 142)
HSLhsl(278, 64%, 34%)
HSVhsv(278, 78%, 56%)
CMYKcmyk(28.2%, 78.2%, 0%, 44.3%)
CIE-LABlab(28.79, 49.48, -47.05)
CIE-LCHlch(28.79, 68.28, 316.44°)
OKLaboklab(40.84% 0.1111 -0.1335)
OKLCHoklch(40.84% 0.174 309.8)
XYZxyz(10.8510, 5.7580, 26.1257)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F8E #478E1F
analogous
#2E1F8E #661F8E #8E1F7F
triadic
#661F8E #8E661F #1F8E66
tetradic
#661F8E #8E2E1F #478E1F #1F7F8E
square
#661F8E #8E2E1F #478E1F #1F7F8E
split-complementary
#661F8E #7F8E1F #1F8E2E
monochromatic
#1E092A #42145C #661F8E #8A2AC0 #A74FD9

Accessibility & contrast

On white

9.76
#661F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#661F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F8E
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F8E#FFFFFF#000000##FFFFFF
##661F8E1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#603A56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #661f8e;
/* rgb */ color: rgb(102, 31, 142);
/* oklch */ color: oklch(40.8% 0.174 309.8);
Tailwind
colors: {
  custom: {
    50: '#9663b0',
    500: '#661f8e',
    950: '#000000',
  },
}
SCSS
$custom: #661f8e;
$custom-light: #9663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#661f8e",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 278.378,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40842,
    "c": 0.17364,
    "h": 309.8
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#661F8E
secondary
#75BB4D
accent
#E7417D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #661F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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