#6628A4#6628A4

#6628A4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.186 H 301.7°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#6628A4
RGBrgb(102, 40, 164)
HSLhsl(270, 61%, 40%)
HSVhsv(270, 76%, 64%)
CMYKcmyk(37.8%, 75.6%, 0%, 35.7%)
CIE-LABlab(31.86, 50.92, -55.51)
CIE-LCHlch(31.86, 75.33, 312.53°)
OKLaboklab(43.55% 0.0979 -0.1584)
OKLCHoklch(43.55% 0.186 301.7)
XYZxyz(12.9375, 7.0226, 35.7887)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6628A4 #66A428
analogous
#2828A4 #6628A4 #A428A4
triadic
#6628A4 #A46628 #28A466
tetradic
#6628A4 #A42828 #66A428 #28A4A4
square
#6628A4 #A42828 #66A428 #28A4A4
split-complementary
#6628A4 #A4A428 #28A428
monochromatic
#291042 #471C73 #6628A4 #853ACF #A36BDB

Accessibility & contrast

On white

8.73
#6628A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6628A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6628A4#FFFFFF#000000##FFFFFF
##6628A41.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#594864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6628a4;
/* rgb */ color: rgb(102, 40, 164);
/* oklch */ color: oklch(43.5% 0.186 301.7);
Tailwind
colors: {
  custom: {
    50: '#9768c0',
    500: '#6628a4',
    950: '#000000',
  },
}
SCSS
$custom: #6628a4;
$custom-light: #9768c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6628a4",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 270,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.43549,
    "c": 0.18619,
    "h": 301.7
  },
  "luminance": 0.07023
}

Semantic roles & 50–950 ramp

primary
#6628A4
secondary
#94C166
accent
#E44494
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6628A4

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

Preview Lab → · Contrast checker → · Palette generator →

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