#662EAB#662EAB

#662EAB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.187 H 299.0°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#662EAB
RGBrgb(102, 46, 171)
HSLhsl(267, 58%, 43%)
HSVhsv(267, 73%, 67%)
CMYKcmyk(40.4%, 73.1%, 0%, 32.9%)
CIE-LABlab(33.39, 49.94, -57.22)
CIE-LCHlch(33.39, 75.95, 311.11°)
OKLaboklab(44.81% 0.0907 -0.1635)
OKLCHoklch(44.81% 0.187 299)
XYZxyz(13.8053, 7.7189, 39.2827)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EAB #73AB2E
analogous
#2E34AB #662EAB #A52EAB
triadic
#662EAB #AB662E #2EAB66
tetradic
#662EAB #AB2E34 #73AB2E #2EABA5
square
#662EAB #AB2E34 #73AB2E #2EABA5
split-complementary
#662EAB #ABA52E #34AB2E
monochromatic
#2C144B #49217B #662EAB #8448CE #A579DB

Accessibility & contrast

On white

8.26
#662EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#662EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EAB
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EAB#FFFFFF#000000##FFFFFF
##662EAB1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#554D6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662eab;
/* rgb */ color: rgb(102, 46, 171);
/* oklch */ color: oklch(44.8% 0.187 299.0);
Tailwind
colors: {
  custom: {
    50: '#986cc5',
    500: '#662eab',
    950: '#000000',
  },
}
SCSS
$custom: #662eab;
$custom-light: #986cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#662eab",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 266.88,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44809,
    "c": 0.18693,
    "h": 299
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#662EAB
secondary
#9FC372
accent
#E1479C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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