#661798#661798

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

Color values

HEX#661798
RGBrgb(102, 23, 152)
HSLhsl(277, 74%, 34%)
HSVhsv(277, 85%, 60%)
CMYKcmyk(32.9%, 84.9%, 0%, 40.4%)
CIE-LABlab(28.65, 54.48, -53.44)
CIE-LCHlch(28.65, 76.31, 315.55°)
OKLaboklab(41% 0.1149 -0.1522)
OKLCHoklch(41% 0.191 307.1)
XYZxyz(11.4521, 5.7047, 30.1975)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661798 #499817
analogous
#261798 #661798 #98178A
triadic
#661798 #986617 #179866
tetradic
#661798 #982617 #499817 #178A98
square
#661798 #982617 #499817 #178A98
split-complementary
#661798 #8A9817 #179826
monochromatic
#1F072E #420F63 #661798 #8A1FCD #A646E3

Accessibility & contrast

On white

9.81
#661798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #661798
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661798#FFFFFF#000000##FFFFFF
##6617981.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#5D3B5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #661798;
/* rgb */ color: rgb(102, 23, 152);
/* oklch */ color: oklch(41.0% 0.191 307.1);
Tailwind
colors: {
  custom: {
    50: '#9760b7',
    500: '#661798',
    950: '#000000',
  },
}
SCSS
$custom: #661798;
$custom-light: #9760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#661798",
  "rgb": {
    "r": 102,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 276.744,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40999,
    "c": 0.19066,
    "h": 307.1
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#661798
secondary
#77C447
accent
#F0377F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #661798

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

Preview Lab → · Contrast checker → · Palette generator →

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