#6628A2#6628A2

#6628A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.184 H 302.3°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#6628A2
RGBrgb(102, 40, 162)
HSLhsl(270, 60%, 40%)
HSVhsv(270, 75%, 64%)
CMYKcmyk(37%, 75.3%, 0%, 36.5%)
CIE-LABlab(31.70, 50.43, -54.57)
CIE-LCHlch(31.70, 74.30, 312.74°)
OKLaboklab(43.38% 0.0984 -0.1556)
OKLCHoklch(43.38% 0.184 302.3)
XYZxyz(12.7583, 6.9510, 34.8449)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6628A2 #64A228
analogous
#2928A2 #6628A2 #A228A1
triadic
#6628A2 #A26628 #28A266
tetradic
#6628A2 #A22928 #64A228 #28A1A2
square
#6628A2 #A22928 #64A228 #28A1A2
split-complementary
#6628A2 #A1A228 #28A229
monochromatic
#281040 #471C71 #6628A2 #8539CE #A36ADA

Accessibility & contrast

On white

8.79
#6628A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6628A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6628A2#FFFFFF#000000##FFFFFF
##6628A21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#594763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6628a2;
/* rgb */ color: rgb(102, 40, 162);
/* oklch */ color: oklch(43.4% 0.184 302.3);
Tailwind
colors: {
  custom: {
    50: '#9768be',
    500: '#6628a2',
    950: '#000000',
  },
}
SCSS
$custom: #6628a2;
$custom-light: #9768be;
$custom-dark: #000000;
JSON
{
  "hex": "#6628a2",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 270.492,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43384,
    "c": 0.18409,
    "h": 302.3
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#6628A2
secondary
#92C165
accent
#E44493
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6628A2

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

Preview Lab → · Contrast checker → · Palette generator →

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