#662979#662979

#662979 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.4% C 0.139 H 317.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#662979
RGBrgb(102, 41, 121)
HSLhsl(286, 49%, 32%)
HSVhsv(286, 66%, 47%)
CMYKcmyk(15.7%, 66.1%, 0%, 52.5%)
CIE-LABlab(28.88, 40.39, -33.77)
CIE-LCHlch(28.88, 52.65, 320.10°)
OKLaboklab(40.43% 0.1024 -0.0946)
OKLCHoklch(40.43% 0.139 317.3)
XYZxyz(9.7231, 5.7915, 18.6912)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662979 #3C7929
analogous
#3E2979 #662979 #792964
triadic
#662979 #796629 #297966
tetradic
#662979 #793E29 #3C7929 #296479
square
#662979 #793E29 #3C7929 #296479
split-complementary
#662979 #647929 #29793E
monochromatic
#190A1E #3F1A4B #662979 #8D38A7 #AB56C6

Accessibility & contrast

On white

9.73
#662979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#662979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662979
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662979#FFFFFF#000000##FFFFFF
##6629791.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E407B
Deuteranopia (green-blind)
#2B4677
Tritanopia (blue-blind)
#65374D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #662979;
/* rgb */ color: rgb(102, 41, 121);
/* oklch */ color: oklch(40.4% 0.139 317.3);
Tailwind
colors: {
  custom: {
    50: '#9467a0',
    500: '#662979',
    950: '#000000',
  },
}
SCSS
$custom: #662979;
$custom-light: #9467a0;
$custom-dark: #000000;
JSON
{
  "hex": "#662979",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 285.75,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40432,
    "c": 0.13942,
    "h": 317.3
  },
  "luminance": 0.05791
}

Semantic roles & 50–950 ramp

primary
#662979
secondary
#68AB53
accent
#D94F70
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060F
muted
#7E7A7E

Preview Lab

Preview with #662979

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

Preview Lab → · Contrast checker → · Palette generator →

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