#662C8B#662C8B

#662C8B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.154 H 309.3°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#662C8B
RGBrgb(102, 44, 139)
HSLhsl(277, 52%, 36%)
HSVhsv(277, 68%, 55%)
CMYKcmyk(26.6%, 68.3%, 0%, 45.5%)
CIE-LABlab(30.62, 43.02, -42.24)
CIE-LCHlch(30.62, 60.29, 315.52°)
OKLaboklab(42.07% 0.0978 -0.1194)
OKLCHoklch(42.07% 0.154 309.3)
XYZxyz(11.0394, 6.4904, 25.0923)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662C8B #518B2C
analogous
#362C8B #662C8B #8B2C80
triadic
#662C8B #8B662C #2C8B66
tetradic
#662C8B #8B362C #518B2C #2C808B
square
#662C8B #8B362C #518B2C #2C808B
split-complementary
#662C8B #808B2C #2C8B36
monochromatic
#220F2E #441D5D #662C8B #883BB9 #A464CE

Accessibility & contrast

On white

9.14
#662C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#662C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662C8B
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662C8B#FFFFFF#000000##FFFFFF
##662C8B1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#1C4989
Tritanopia (blue-blind)
#614058
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #662c8b;
/* rgb */ color: rgb(102, 44, 139);
/* oklch */ color: oklch(42.1% 0.154 309.3);
Tailwind
colors: {
  custom: {
    50: '#956aad',
    500: '#662c8b',
    950: '#000000',
  },
}
SCSS
$custom: #662c8b;
$custom-light: #956aad;
$custom-dark: #000000;
JSON
{
  "hex": "#662c8b",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 276.632,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42069,
    "c": 0.15435,
    "h": 309.3
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#662C8B
secondary
#80B45F
accent
#DB4C84
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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