#661898#661898

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

Color values

HEX#661898
RGBrgb(102, 24, 152)
HSLhsl(277, 73%, 35%)
HSVhsv(277, 84%, 60%)
CMYKcmyk(32.9%, 84.2%, 0%, 40.4%)
CIE-LABlab(28.76, 54.17, -53.26)
CIE-LCHlch(28.76, 75.97, 315.48°)
OKLaboklab(41.07% 0.1142 -0.1517)
OKLCHoklch(41.07% 0.19 307)
XYZxyz(11.4724, 5.7452, 30.2042)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#661898 #4A9818
analogous
#261898 #661898 #98188A
triadic
#661898 #986618 #189866
tetradic
#661898 #982618 #4A9818 #188A98
square
#661898 #982618 #4A9818 #188A98
split-complementary
#661898 #8A9818 #189826
monochromatic
#1F072E #431063 #661898 #8920CD #A648E2

Accessibility & contrast

On white

9.77
#661898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#661898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #661898
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##661898#FFFFFF#000000##FFFFFF
##6618981.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.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: #661898;
/* rgb */ color: rgb(102, 24, 152);
/* oklch */ color: oklch(41.1% 0.190 307.0);
Tailwind
colors: {
  custom: {
    50: '#9761b7',
    500: '#661898',
    950: '#000000',
  },
}
SCSS
$custom: #661898;
$custom-light: #9761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#661898",
  "rgb": {
    "r": 102,
    "g": 24,
    "b": 152
  },
  "hsl": {
    "h": 276.563,
    "s": 72.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41072,
    "c": 0.18985,
    "h": 307
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#661898
secondary
#78C448
accent
#EF3880
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #661898

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

Preview Lab → · Contrast checker → · Palette generator →

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