#662EAC#662EAC

#662EAC is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.188 H 298.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#662EAC
RGBrgb(102, 46, 172)
HSLhsl(267, 58%, 43%)
HSVhsv(267, 73%, 67%)
CMYKcmyk(40.7%, 73.3%, 0%, 32.5%)
CIE-LABlab(33.47, 50.19, -57.69)
CIE-LCHlch(33.47, 76.47, 311.03°)
OKLaboklab(44.89% 0.0905 -0.1648)
OKLCHoklch(44.89% 0.188 298.8)
XYZxyz(13.9010, 7.7571, 39.7866)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EAC #74AC2E
analogous
#2E35AC #662EAC #A52EAC
triadic
#662EAC #AC662E #2EAC66
tetradic
#662EAC #AC2E35 #74AC2E #2EACA5
square
#662EAC #AC2E35 #74AC2E #2EACA5
split-complementary
#662EAC #ACA52E #35AC2E
monochromatic
#2D144B #49217C #662EAC #8449CE #A579DB

Accessibility & contrast

On white

8.23
#662EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#662EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EAC
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EAC#FFFFFF#000000##FFFFFF
##662EAC1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662eac;
/* rgb */ color: rgb(102, 46, 172);
/* oklch */ color: oklch(44.9% 0.188 298.8);
Tailwind
colors: {
  custom: {
    50: '#986cc6',
    500: '#662eac',
    950: '#000000',
  },
}
SCSS
$custom: #662eac;
$custom-light: #986cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#662eac",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 266.667,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44892,
    "c": 0.18803,
    "h": 298.8
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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