#661996#661996

#661996 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.187 H 307.6°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#661996
RGBrgb(102, 25, 150)
HSLhsl(277, 71%, 34%)
HSVhsv(277, 83%, 59%)
CMYKcmyk(32%, 83.3%, 0%, 41.2%)
CIE-LABlab(28.70, 53.41, -52.13)
CIE-LCHlch(28.70, 74.63, 315.69°)
OKLaboklab(40.98% 0.1141 -0.1483)
OKLCHoklch(40.98% 0.187 307.6)
XYZxyz(11.3310, 5.7222, 29.3558)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661996 #499619
analogous
#281996 #661996 #961988
triadic
#661996 #966619 #199666
tetradic
#661996 #962819 #499619 #198896
square
#661996 #962819 #499619 #198896
split-complementary
#661996 #889619 #199628
monochromatic
#1F082D #421062 #661996 #8A22CA #A649E1

Accessibility & contrast

On white

9.79
#661996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#661996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661996
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661996#FFFFFF#000000##FFFFFF
##6619961.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#5E3B59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #661996;
/* rgb */ color: rgb(102, 25, 150);
/* oklch */ color: oklch(41.0% 0.187 307.6);
Tailwind
colors: {
  custom: {
    50: '#9761b6',
    500: '#661996',
    950: '#000000',
  },
}
SCSS
$custom: #661996;
$custom-light: #9761b6;
$custom-dark: #000000;
JSON
{
  "hex": "#661996",
  "rgb": {
    "r": 102,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 276.96,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40979,
    "c": 0.18713,
    "h": 307.6
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#661996
secondary
#77C249
accent
#EE3A7F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #661996

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

Preview Lab → · Contrast checker → · Palette generator →

#661996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva