#6628AA#6628AA

#6628AA is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.1% C 0.193 H 300.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#6628AA
RGBrgb(102, 40, 170)
HSLhsl(269, 62%, 41%)
HSVhsv(269, 76%, 67%)
CMYKcmyk(40%, 76.5%, 0%, 33.3%)
CIE-LABlab(32.36, 52.39, -58.31)
CIE-LCHlch(32.36, 78.39, 311.94°)
OKLaboklab(44.06% 0.0964 -0.1666)
OKLCHoklch(44.06% 0.193 300.1)
XYZxyz(13.4922, 7.2445, 38.7099)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6628AA #6CAA28
analogous
#282BAA #6628AA #A728AA
triadic
#6628AA #AA6628 #28AA66
tetradic
#6628AA #AA282B #6CAA28 #28AAA7
square
#6628AA #AA282B #6CAA28 #28AAA7
split-complementary
#6628AA #AAA728 #2BAA28
monochromatic
#2B1147 #481C78 #6628AA #843ED2 #A46FDD

Accessibility & contrast

On white

8.57
#6628AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6628AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6628AA
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6628AA#FFFFFF#000000##FFFFFF
##6628AA1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#564A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6628aa;
/* rgb */ color: rgb(102, 40, 170);
/* oklch */ color: oklch(44.1% 0.193 300.1);
Tailwind
colors: {
  custom: {
    50: '#9869c4',
    500: '#6628aa',
    950: '#000000',
  },
}
SCSS
$custom: #6628aa;
$custom-light: #9869c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6628aa",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 268.615,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44055,
    "c": 0.1925,
    "h": 300.1
  },
  "luminance": 0.07245
}

Semantic roles & 50–950 ramp

primary
#6628AA
secondary
#99C46A
accent
#E54398
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6628AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6628AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva