#662BA9#662BA9

#662BA9 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.188 H 300.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#662BA9
RGBrgb(102, 43, 169)
HSLhsl(268, 59%, 42%)
HSVhsv(268, 75%, 66%)
CMYKcmyk(39.6%, 74.6%, 0%, 33.7%)
CIE-LABlab(32.74, 50.82, -57.09)
CIE-LCHlch(32.74, 76.43, 311.68°)
OKLaboklab(44.3% 0.094 -0.163)
OKLCHoklch(44.3% 0.188 300)
XYZxyz(13.5030, 7.4170, 38.2486)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BA9 #6EA92B
analogous
#2B2FA9 #662BA9 #A52BA9
triadic
#662BA9 #A9662B #2BA966
tetradic
#662BA9 #A92B2F #6EA92B #2BA9A5
square
#662BA9 #A92B2F #6EA92B #2BA9A5
split-complementary
#662BA9 #A9A52B #2FA92B
monochromatic
#2B1247 #491F78 #662BA9 #8442CF #A473DB

Accessibility & contrast

On white

8.46
#662BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#662BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BA9
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BA9#FFFFFF#000000##FFFFFF
##662BA91.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#564B68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662ba9;
/* rgb */ color: rgb(102, 43, 169);
/* oklch */ color: oklch(44.3% 0.188 300.0);
Tailwind
colors: {
  custom: {
    50: '#986ac3',
    500: '#662ba9',
    950: '#000000',
  },
}
SCSS
$custom: #662ba9;
$custom-light: #986ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#662ba9",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 268.095,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44297,
    "c": 0.18818,
    "h": 300
  },
  "luminance": 0.07417
}

Semantic roles & 50–950 ramp

primary
#662BA9
secondary
#9BC36D
accent
#E34599
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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