#661E8F#661E8F

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

Color values

HEX#661E8F
RGBrgb(102, 30, 143)
HSLhsl(278, 65%, 34%)
HSVhsv(278, 79%, 56%)
CMYKcmyk(28.7%, 79%, 0%, 43.9%)
CIE-LABlab(28.74, 50.09, -47.76)
CIE-LCHlch(28.74, 69.21, 316.37°)
OKLaboklab(40.83% 0.1118 -0.1355)
OKLCHoklch(40.83% 0.176 309.5)
XYZxyz(10.9007, 5.7367, 26.5143)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661E8F #478F1E
analogous
#2E1E8F #661E8F #8F1E80
triadic
#661E8F #8F661E #1E8F66
tetradic
#661E8F #8F2E1E #478F1E #1E808F
square
#661E8F #8F2E1E #478F1E #1E808F
split-complementary
#661E8F #808F1E #1E8F2E
monochromatic
#1E092A #42135C #661E8F #8A29C2 #A74EDA

Accessibility & contrast

On white

9.78
#661E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661E8F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661E8F#FFFFFF#000000##FFFFFF
##661E8F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #661e8f;
/* rgb */ color: rgb(102, 30, 143);
/* oklch */ color: oklch(40.8% 0.176 309.5);
Tailwind
colors: {
  custom: {
    50: '#9663b1',
    500: '#661e8f',
    950: '#000000',
  },
}
SCSS
$custom: #661e8f;
$custom-light: #9663b1;
$custom-dark: #000000;
JSON
{
  "hex": "#661e8f",
  "rgb": {
    "r": 102,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 278.23,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40827,
    "c": 0.17569,
    "h": 309.5
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#661E8F
secondary
#75BC4C
accent
#E8407D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #661E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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