#662B9B#662B9B

#662B9B is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.173 H 304.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#662B9B
RGBrgb(102, 43, 155)
HSLhsl(272, 57%, 39%)
HSVhsv(272, 72%, 61%)
CMYKcmyk(34.2%, 72.3%, 0%, 39.2%)
CIE-LABlab(31.62, 47.35, -50.44)
CIE-LCHlch(31.62, 69.18, 313.19°)
OKLaboklab(43.16% 0.0968 -0.1435)
OKLCHoklch(43.16% 0.173 304)
XYZxyz(12.2584, 6.9191, 31.6937)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662B9B #609B2B
analogous
#2E2B9B #662B9B #9B2B98
triadic
#662B9B #9B662B #2B9B66
tetradic
#662B9B #9B2E2B #609B2B #2B989B
square
#662B9B #9B2E2B #609B2B #2B989B
split-complementary
#662B9B #989B2B #2B9B2E
monochromatic
#27103B #461E6B #662B9B #853BC9 #A36BD6

Accessibility & contrast

On white

8.81
#662B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#662B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662B9B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662B9B#FFFFFF#000000##FFFFFF
##662B9B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#5C4660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #662b9b;
/* rgb */ color: rgb(102, 43, 155);
/* oklch */ color: oklch(43.2% 0.173 304.0);
Tailwind
colors: {
  custom: {
    50: '#966ab9',
    500: '#662b9b',
    950: '#000000',
  },
}
SCSS
$custom: #662b9b;
$custom-light: #966ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#662b9b",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 271.607,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.17309,
    "h": 304
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#662B9B
secondary
#8FBC65
accent
#E04890
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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