#662A85#662A85

#662A85 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.151 H 311.9°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#662A85
RGBrgb(102, 42, 133)
HSLhsl(280, 52%, 34%)
HSVhsv(280, 68%, 52%)
CMYKcmyk(23.3%, 68.4%, 0%, 47.8%)
CIE-LABlab(29.85, 42.60, -39.75)
CIE-LCHlch(29.85, 58.27, 316.98°)
OKLaboklab(41.38% 0.1007 -0.1121)
OKLCHoklch(41.38% 0.151 311.9)
XYZxyz(10.5403, 6.1744, 22.8223)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662A85 #49852A
analogous
#382A85 #662A85 #852A77
triadic
#662A85 #85662A #2A8566
tetradic
#662A85 #85382A #49852A #2A7785
square
#662A85 #85382A #49852A #2A7785
split-complementary
#662A85 #77852A #2A8538
monochromatic
#1F0D28 #421B56 #662A85 #8A39B4 #A65DCC

Accessibility & contrast

On white

9.40
#662A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#662A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662A85
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662A85#FFFFFF#000000##FFFFFF
##662A851.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#214883
Tritanopia (blue-blind)
#623C54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662a85;
/* rgb */ color: rgb(102, 42, 133);
/* oklch */ color: oklch(41.4% 0.151 311.9);
Tailwind
colors: {
  custom: {
    50: '#9568a9',
    500: '#662a85',
    950: '#000000',
  },
}
SCSS
$custom: #662a85;
$custom-light: #9568a9;
$custom-dark: #000000;
JSON
{
  "hex": "#662a85",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 279.56,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41384,
    "c": 0.15067,
    "h": 311.9
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#662A85
secondary
#77B259
accent
#DB4C7D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662A85

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

Preview Lab → · Contrast checker → · Palette generator →

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