#662197#662197

#662197 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.180 H 306.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#662197
RGBrgb(102, 33, 151)
HSLhsl(275, 64%, 36%)
HSVhsv(275, 78%, 59%)
CMYKcmyk(32.5%, 78.1%, 0%, 40.8%)
CIE-LABlab(29.78, 50.74, -50.99)
CIE-LCHlch(29.78, 71.93, 314.86°)
OKLaboklab(41.76% 0.1073 -0.1451)
OKLCHoklch(41.76% 0.18 306.5)
XYZxyz(11.6080, 6.1470, 29.8471)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662197 #529721
analogous
#2B2197 #662197 #97218D
triadic
#662197 #976621 #219766
tetradic
#662197 #972B21 #529721 #218D97
square
#662197 #972B21 #529721 #218D97
split-complementary
#662197 #8D9721 #21972B
monochromatic
#220B33 #441665 #662197 #882CC9 #A458DA

Accessibility & contrast

On white

9.42
#662197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#662197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662197
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662197#FFFFFF#000000##FFFFFF
##6621971.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#5D3F5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662197;
/* rgb */ color: rgb(102, 33, 151);
/* oklch */ color: oklch(41.8% 0.180 306.5);
Tailwind
colors: {
  custom: {
    50: '#9764b6',
    500: '#662197',
    950: '#000000',
  },
}
SCSS
$custom: #662197;
$custom-light: #9764b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662197",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 275.085,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41759,
    "c": 0.18042,
    "h": 306.5
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#662197
secondary
#81BE55
accent
#E74186
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662197

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

Preview Lab → · Contrast checker → · Palette generator →

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