#662CAC#662CAC

#662CAC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.190 H 299.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#662CAC
RGBrgb(102, 44, 172)
HSLhsl(267, 59%, 42%)
HSVhsv(267, 74%, 67%)
CMYKcmyk(40.7%, 74.4%, 0%, 32.5%)
CIE-LABlab(33.15, 51.12, -58.22)
CIE-LCHlch(33.15, 77.48, 311.28°)
OKLaboklab(44.66% 0.0924 -0.1664)
OKLCHoklch(44.66% 0.19 299)
XYZxyz(13.8247, 7.6045, 39.7612)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CAC #72AC2C
analogous
#2C32AC #662CAC #A62CAC
triadic
#662CAC #AC662C #2CAC66
tetradic
#662CAC #AC2C32 #72AC2C #2CACA6
square
#662CAC #AC2C32 #72AC2C #2CACA6
split-complementary
#662CAC #ACA62C #32AC2C
monochromatic
#2C134B #49207B #662CAC #8446D0 #A476DC

Accessibility & contrast

On white

8.33
#662CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#662CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CAC
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CAC#FFFFFF#000000##FFFFFF
##662CAC1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662cac;
/* rgb */ color: rgb(102, 44, 172);
/* oklch */ color: oklch(44.7% 0.190 299.0);
Tailwind
colors: {
  custom: {
    50: '#986bc6',
    500: '#662cac',
    950: '#000000',
  },
}
SCSS
$custom: #662cac;
$custom-light: #986bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#662cac",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 267.188,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44661,
    "c": 0.19029,
    "h": 299
  },
  "luminance": 0.07605
}

Semantic roles & 50–950 ramp

primary
#662CAC
secondary
#9EC470
accent
#E2459B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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