#6628A3#6628A3

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

Color values

HEX#6628A3
RGBrgb(102, 40, 163)
HSLhsl(270, 61%, 40%)
HSVhsv(270, 75%, 64%)
CMYKcmyk(37.4%, 75.5%, 0%, 36.1%)
CIE-LABlab(31.78, 50.67, -55.04)
CIE-LCHlch(31.78, 74.81, 312.63°)
OKLaboklab(43.47% 0.0981 -0.157)
OKLCHoklch(43.47% 0.185 302)
XYZxyz(12.8476, 6.9867, 35.3149)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6628A3 #65A328
analogous
#2928A3 #6628A3 #A328A2
triadic
#6628A3 #A36628 #28A366
tetradic
#6628A3 #A32928 #65A328 #28A2A3
square
#6628A3 #A32928 #65A328 #28A2A3
split-complementary
#6628A3 #A2A328 #28A329
monochromatic
#281041 #471C72 #6628A3 #853ACF #A36BDB

Accessibility & contrast

On white

8.76
#6628A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6628A3#FFFFFF#000000##FFFFFF
##6628A31.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#594764
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6628a3;
/* rgb */ color: rgb(102, 40, 163);
/* oklch */ color: oklch(43.5% 0.185 302.0);
Tailwind
colors: {
  custom: {
    50: '#9768bf',
    500: '#6628a3',
    950: '#000000',
  },
}
SCSS
$custom: #6628a3;
$custom-light: #9768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6628a3",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 270.244,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43466,
    "c": 0.18514,
    "h": 302
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#6628A3
secondary
#93C166
accent
#E44493
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6628A3

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

Preview Lab → · Contrast checker → · Palette generator →

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