#662C7B#662C7B

#662C7B is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.0% C 0.137 H 316.0°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#662C7B
RGBrgb(102, 44, 123)
HSLhsl(284, 47%, 33%)
HSVhsv(284, 64%, 48%)
CMYKcmyk(17.1%, 64.2%, 0%, 51.8%)
CIE-LABlab(29.55, 39.33, -33.96)
CIE-LCHlch(29.55, 51.96, 319.19°)
OKLaboklab(40.96% 0.0985 -0.0951)
OKLCHoklch(40.96% 0.137 316)
XYZxyz(9.9548, 6.0566, 19.3797)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662C7B #417B2C
analogous
#3F2C7B #662C7B #7B2C68
triadic
#662C7B #7B662C #2C7B66
tetradic
#662C7B #7B3F2C #417B2C #2C687B
square
#662C7B #7B3F2C #417B2C #2C687B
split-complementary
#662C7B #687B2C #2C7B3F
monochromatic
#1B0C21 #411C4E #662C7B #8B3CA8 #A95DC5

Accessibility & contrast

On white

9.50
#662C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#662C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662C7B
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662C7B#FFFFFF#000000##FFFFFF
##662C7B1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#2C4779
Tritanopia (blue-blind)
#653A4F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662c7b;
/* rgb */ color: rgb(102, 44, 123);
/* oklch */ color: oklch(41.0% 0.137 316.0);
Tailwind
colors: {
  custom: {
    50: '#9469a1',
    500: '#662c7b',
    950: '#000000',
  },
}
SCSS
$custom: #662c7b;
$custom-light: #9469a1;
$custom-dark: #000000;
JSON
{
  "hex": "#662c7b",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 284.051,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40961,
    "c": 0.13695,
    "h": 316
  },
  "luminance": 0.06056
}

Semantic roles & 50–950 ramp

primary
#662C7B
secondary
#6EAB58
accent
#D75175
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #662C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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