#6628AE#6628AE

#6628AE is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.197 H 299.0°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#6628AE
RGBrgb(102, 40, 174)
HSLhsl(268, 63%, 42%)
HSVhsv(268, 77%, 68%)
CMYKcmyk(41.4%, 77%, 0%, 31.8%)
CIE-LABlab(32.70, 53.38, -60.15)
CIE-LCHlch(32.70, 80.42, 311.59°)
OKLaboklab(44.4% 0.0954 -0.172)
OKLCHoklch(44.4% 0.197 299)
XYZxyz(13.8763, 7.3982, 40.7331)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6628AE #70AE28
analogous
#282DAE #6628AE #A928AE
triadic
#6628AE #AE6628 #28AE66
tetradic
#6628AE #AE282D #70AE28 #28AEA9
square
#6628AE #AE282D #70AE28 #28AEA9
split-complementary
#6628AE #AEA928 #2DAE28
monochromatic
#2C114A #491D7C #6628AE #8440D3 #A472DF

Accessibility & contrast

On white

8.47
#6628AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6628AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6628AE#FFFFFF#000000##FFFFFF
##6628AE1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#544C6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6628ae;
/* rgb */ color: rgb(102, 40, 174);
/* oklch */ color: oklch(44.4% 0.197 299.0);
Tailwind
colors: {
  custom: {
    50: '#9869c7',
    500: '#6628ae',
    950: '#000000',
  },
}
SCSS
$custom: #6628ae;
$custom-light: #9869c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6628ae",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 267.761,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44398,
    "c": 0.1967,
    "h": 299
  },
  "luminance": 0.07398
}

Semantic roles & 50–950 ramp

primary
#6628AE
secondary
#9CC66C
accent
#E6429A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6628AE

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

Preview Lab → · Contrast checker → · Palette generator →

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