#662BAC#662BAC

#662BAC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.191 H 299.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#662BAC
RGBrgb(102, 43, 172)
HSLhsl(267, 60%, 42%)
HSVhsv(267, 75%, 67%)
CMYKcmyk(40.7%, 75%, 0%, 32.5%)
CIE-LABlab(32.99, 51.57, -58.48)
CIE-LCHlch(32.99, 77.97, 311.41°)
OKLaboklab(44.55% 0.0933 -0.1671)
OKLCHoklch(44.55% 0.191 299.2)
XYZxyz(13.7879, 7.5309, 39.7489)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BAC #71AC2B
analogous
#2B30AC #662BAC #A72BAC
triadic
#662BAC #AC662B #2BAC66
tetradic
#662BAC #AC2B30 #71AC2B #2BACA7
square
#662BAC #AC2B30 #71AC2B #2BACA7
split-complementary
#662BAC #ACA72B #30AC2B
monochromatic
#2C134A #491F7B #662BAC #8444D0 #A475DC

Accessibility & contrast

On white

8.38
#662BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#662BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BAC
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BAC#FFFFFF#000000##FFFFFF
##662BAC1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#554C6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662bac;
/* rgb */ color: rgb(102, 43, 172);
/* oklch */ color: oklch(44.5% 0.191 299.2);
Tailwind
colors: {
  custom: {
    50: '#986ac6',
    500: '#662bac',
    950: '#000000',
  },
}
SCSS
$custom: #662bac;
$custom-light: #986ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#662bac",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 267.442,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44549,
    "c": 0.1914,
    "h": 299.2
  },
  "luminance": 0.07531
}

Semantic roles & 50–950 ramp

primary
#662BAC
secondary
#9DC46F
accent
#E3459B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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