#662976#662976

#662976 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.2% C 0.136 H 318.7°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#662976
RGBrgb(102, 41, 118)
HSLhsl(288, 48%, 31%)
HSVhsv(288, 65%, 46%)
CMYKcmyk(13.6%, 65.3%, 0%, 53.7%)
CIE-LABlab(28.69, 39.74, -32.17)
CIE-LCHlch(28.69, 51.13, 321.01°)
OKLaboklab(40.24% 0.1024 -0.0899)
OKLCHoklch(40.24% 0.136 318.7)
XYZxyz(9.5420, 5.7191, 17.7373)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662976 #397629
analogous
#3F2976 #662976 #76295F
triadic
#662976 #766629 #297666
tetradic
#662976 #763F29 #397629 #295F76
square
#662976 #763F29 #397629 #295F76
split-complementary
#662976 #5F7629 #29763F
monochromatic
#17091B #3F1949 #662976 #8D39A3 #AD55C4

Accessibility & contrast

On white

9.80
#662976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662976
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662976#FFFFFF#000000##FFFFFF
##6629761.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134078
Deuteranopia (green-blind)
#2D4674
Tritanopia (blue-blind)
#66364B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #662976;
/* rgb */ color: rgb(102, 41, 118);
/* oklch */ color: oklch(40.2% 0.136 318.7);
Tailwind
colors: {
  custom: {
    50: '#94679e',
    500: '#662976',
    950: '#000000',
  },
}
SCSS
$custom: #662976;
$custom-light: #94679e;
$custom-dark: #000000;
JSON
{
  "hex": "#662976",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 287.532,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40236,
    "c": 0.13629,
    "h": 318.7
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#662976
secondary
#65A853
accent
#D8506C
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #662976

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

Preview Lab → · Contrast checker → · Palette generator →

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