#662C8A#662C8A

#662C8A is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.153 H 309.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#662C8A
RGBrgb(102, 44, 138)
HSLhsl(277, 52%, 36%)
HSVhsv(277, 68%, 54%)
CMYKcmyk(26.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(30.55, 42.78, -41.74)
CIE-LCHlch(30.55, 59.77, 315.71°)
OKLaboklab(42% 0.0979 -0.1179)
OKLCHoklch(42% 0.153 309.7)
XYZxyz(10.9667, 6.4613, 24.7093)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662C8A #508A2C
analogous
#372C8A #662C8A #8A2C7F
triadic
#662C8A #8A662C #2C8A66
tetradic
#662C8A #8A372C #508A2C #2C7F8A
square
#662C8A #8A372C #508A2C #2C7F8A
split-complementary
#662C8A #7F8A2C #2C8A37
monochromatic
#210E2D #441D5C #662C8A #883BB8 #A563CD

Accessibility & contrast

On white

9.16
#662C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#662C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662C8A
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662C8A#FFFFFF#000000##FFFFFF
##662C8A1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#1D4988
Tritanopia (blue-blind)
#614057
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #662c8a;
/* rgb */ color: rgb(102, 44, 138);
/* oklch */ color: oklch(42.0% 0.153 309.7);
Tailwind
colors: {
  custom: {
    50: '#956aad',
    500: '#662c8a',
    950: '#000000',
  },
}
SCSS
$custom: #662c8a;
$custom-light: #956aad;
$custom-dark: #000000;
JSON
{
  "hex": "#662c8a",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 277.021,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41996,
    "c": 0.15326,
    "h": 309.7
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#662C8A
secondary
#7FB45E
accent
#DB4D83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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