#661F9D#661F9D

#661F9D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.188 H 304.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#661F9D
RGBrgb(102, 31, 157)
HSLhsl(274, 67%, 37%)
HSVhsv(274, 80%, 62%)
CMYKcmyk(35%, 80.3%, 0%, 38.4%)
CIE-LABlab(30.01, 52.90, -54.28)
CIE-LCHlch(30.01, 75.80, 314.26°)
OKLaboklab(42.07% 0.1075 -0.1547)
OKLCHoklch(42.07% 0.188 304.8)
XYZxyz(12.0539, 6.2391, 32.4610)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661F9D #569D1F
analogous
#271F9D #661F9D #9D1F95
triadic
#661F9D #9D661F #1F9D66
tetradic
#661F9D #9D271F #569D1F #1F959D
square
#661F9D #9D271F #569D1F #1F959D
split-complementary
#661F9D #959D1F #1F9D27
monochromatic
#240B37 #45156A #661F9D #8729D0 #A458DE

Accessibility & contrast

On white

9.34
#661F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661F9D
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661F9D#FFFFFF#000000##FFFFFF
##661F9D1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#5B415E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #661f9d;
/* rgb */ color: rgb(102, 31, 157);
/* oklch */ color: oklch(42.1% 0.188 304.8);
Tailwind
colors: {
  custom: {
    50: '#9764bb',
    500: '#661f9d',
    950: '#000000',
  },
}
SCSS
$custom: #661f9d;
$custom-light: #9764bb;
$custom-dark: #000000;
JSON
{
  "hex": "#661f9d",
  "rgb": {
    "r": 102,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 273.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.18837,
    "h": 304.8
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#661F9D
secondary
#85C256
accent
#EA3E89
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #661F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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