#662B76#662B76

#662B76 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.5% C 0.133 H 318.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#662B76
RGBrgb(102, 43, 118)
HSLhsl(287, 47%, 32%)
HSVhsv(287, 64%, 46%)
CMYKcmyk(13.6%, 63.6%, 0%, 53.7%)
CIE-LABlab(29.06, 38.74, -31.59)
CIE-LCHlch(29.06, 49.99, 320.80°)
OKLaboklab(40.5% 0.0998 -0.0882)
OKLCHoklch(40.5% 0.133 318.5)
XYZxyz(9.6129, 5.8609, 17.7609)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662B76 #3B762B
analogous
#412B76 #662B76 #762B61
triadic
#662B76 #76662B #2B7666
tetradic
#662B76 #76412B #3B762B #2B6176
square
#662B76 #76412B #3B762B #2B6176
split-complementary
#662B76 #61762B #2B7641
monochromatic
#180A1C #3F1B49 #662B76 #8D3BA3 #AC59C2

Accessibility & contrast

On white

9.67
#662B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#662B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662B76
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662B76#FFFFFF#000000##FFFFFF
##662B761.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174178
Deuteranopia (green-blind)
#2F4674
Tritanopia (blue-blind)
#66374C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #662b76;
/* rgb */ color: rgb(102, 43, 118);
/* oklch */ color: oklch(40.5% 0.133 318.5);
Tailwind
colors: {
  custom: {
    50: '#94689e',
    500: '#662b76',
    950: '#000000',
  },
}
SCSS
$custom: #662b76;
$custom-light: #94689e;
$custom-dark: #000000;
JSON
{
  "hex": "#662b76",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 118
  },
  "hsl": {
    "h": 287.2,
    "s": 46.584,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40502,
    "c": 0.13318,
    "h": 318.5
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#662B76
secondary
#67A855
accent
#D6526E
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #662B76

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

Preview Lab → · Contrast checker → · Palette generator →

#662B76 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva