#661F9E#661F9E

#661F9E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.189 H 304.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#661F9E
RGBrgb(102, 31, 158)
HSLhsl(274, 67%, 37%)
HSVhsv(274, 80%, 62%)
CMYKcmyk(35.4%, 80.4%, 0%, 38%)
CIE-LABlab(30.09, 53.13, -54.76)
CIE-LCHlch(30.09, 76.29, 314.14°)
OKLaboklab(42.16% 0.1072 -0.1561)
OKLCHoklch(42.16% 0.189 304.5)
XYZxyz(12.1396, 6.2734, 32.9125)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F9E #579E1F
analogous
#261F9E #661F9E #9E1F97
triadic
#661F9E #9E661F #1F9E66
tetradic
#661F9E #9E261F #579E1F #1F979E
square
#661F9E #9E261F #579E1F #1F979E
split-complementary
#661F9E #979E1F #1F9E26
monochromatic
#240B38 #45156B #661F9E #8729D1 #A459DE

Accessibility & contrast

On white

9.31
#661F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#661F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661F9E
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F9E#FFFFFF#000000##FFFFFF
##661F9E1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#5B415F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #661f9e;
/* rgb */ color: rgb(102, 31, 158);
/* oklch */ color: oklch(42.2% 0.189 304.5);
Tailwind
colors: {
  custom: {
    50: '#9764bc',
    500: '#661f9e',
    950: '#000000',
  },
}
SCSS
$custom: #661f9e;
$custom-light: #9764bc;
$custom-dark: #000000;
JSON
{
  "hex": "#661f9e",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 273.543,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42157,
    "c": 0.18936,
    "h": 304.5
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#661F9E
secondary
#86C256
accent
#EA3E8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #661F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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