#6628AB#6628AB

#6628AB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.194 H 299.8°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#6628AB
RGBrgb(102, 40, 171)
HSLhsl(268, 62%, 41%)
HSVhsv(268, 77%, 67%)
CMYKcmyk(40.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(32.44, 52.64, -58.77)
CIE-LCHlch(32.44, 78.90, 311.85°)
OKLaboklab(44.14% 0.0962 -0.168)
OKLCHoklch(44.14% 0.194 299.8)
XYZxyz(13.5871, 7.2825, 39.2100)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6628AB #6DAB28
analogous
#282CAB #6628AB #A828AB
triadic
#6628AB #AB6628 #28AB66
tetradic
#6628AB #AB282C #6DAB28 #28ABA8
square
#6628AB #AB282C #6DAB28 #28ABA8
split-complementary
#6628AB #ABA828 #2CAB28
monochromatic
#2B1148 #481C79 #6628AB #843ED2 #A470DE

Accessibility & contrast

On white

8.55
#6628AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#6628AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6628AB#FFFFFF#000000##FFFFFF
##6628AB1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#564B68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6628ab;
/* rgb */ color: rgb(102, 40, 171);
/* oklch */ color: oklch(44.1% 0.194 299.8);
Tailwind
colors: {
  custom: {
    50: '#9869c5',
    500: '#6628ab',
    950: '#000000',
  },
}
SCSS
$custom: #6628ab;
$custom-light: #9869c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6628ab",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 268.397,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4414,
    "c": 0.19355,
    "h": 299.8
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#6628AB
secondary
#9AC46A
accent
#E54398
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6628AB

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

Preview Lab → · Contrast checker → · Palette generator →

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