#662C8D#662C8D

#662C8D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.157 H 308.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#662C8D
RGBrgb(102, 44, 141)
HSLhsl(276, 52%, 36%)
HSVhsv(276, 69%, 55%)
CMYKcmyk(27.7%, 68.8%, 0%, 44.7%)
CIE-LABlab(30.76, 43.49, -43.25)
CIE-LCHlch(30.76, 61.34, 315.16°)
OKLaboklab(42.21% 0.0976 -0.1224)
OKLCHoklch(42.21% 0.157 308.6)
XYZxyz(11.1869, 6.5494, 25.8690)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662C8D #538D2C
analogous
#362C8D #662C8D #8D2C84
triadic
#662C8D #8D662C #2C8D66
tetradic
#662C8D #8D362C #538D2C #2C848D
square
#662C8D #8D362C #538D2C #2C848D
split-complementary
#662C8D #848D2C #2C8D36
monochromatic
#230F30 #441D5E #662C8D #883BBC #A465CF

Accessibility & contrast

On white

9.09
#662C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#662C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662C8D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662C8D#FFFFFF#000000##FFFFFF
##662C8D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#19498B
Tritanopia (blue-blind)
#604159
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #662c8d;
/* rgb */ color: rgb(102, 44, 141);
/* oklch */ color: oklch(42.2% 0.157 308.6);
Tailwind
colors: {
  custom: {
    50: '#956aaf',
    500: '#662c8d',
    950: '#000000',
  },
}
SCSS
$custom: #662c8d;
$custom-light: #956aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#662c8d",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 275.876,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42214,
    "c": 0.15654,
    "h": 308.6
  },
  "luminance": 0.06549
}

Semantic roles & 50–950 ramp

primary
#662C8D
secondary
#82B560
accent
#DC4C86
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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