#661797#661797

#661797 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.190 H 307.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#661797
RGBrgb(102, 23, 151)
HSLhsl(277, 74%, 34%)
HSVhsv(277, 85%, 59%)
CMYKcmyk(32.5%, 84.8%, 0%, 40.8%)
CIE-LABlab(28.57, 54.26, -52.96)
CIE-LCHlch(28.57, 75.82, 315.69°)
OKLaboklab(40.91% 0.1152 -0.1508)
OKLCHoklch(40.91% 0.19 307.4)
XYZxyz(11.3706, 5.6721, 29.7680)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661797 #489717
analogous
#261797 #661797 #971788
triadic
#661797 #976617 #179766
tetradic
#661797 #972617 #489717 #178897
square
#661797 #972617 #489717 #178897
split-complementary
#661797 #889717 #179726
monochromatic
#1E072D #420F62 #661797 #8A1FCC #A746E3

Accessibility & contrast

On white

9.84
#661797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#661797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661797
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661797#FFFFFF#000000##FFFFFF
##6617971.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#5E3B59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #661797;
/* rgb */ color: rgb(102, 23, 151);
/* oklch */ color: oklch(40.9% 0.190 307.4);
Tailwind
colors: {
  custom: {
    50: '#9760b7',
    500: '#661797',
    950: '#000000',
  },
}
SCSS
$custom: #661797;
$custom-light: #9760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#661797",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 277.031,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40914,
    "c": 0.18974,
    "h": 307.4
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

primary
#661797
secondary
#76C446
accent
#F0387E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #661797

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

Preview Lab → · Contrast checker → · Palette generator →

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