#A628AB#A628AB

#A628AB is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.214 H 326.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#A628AB
RGBrgb(166, 40, 171)
HSLhsl(298, 62%, 41%)
HSVhsv(298, 77%, 67%)
CMYKcmyk(2.9%, 76.6%, 0%, 32.9%)
CIE-LABlab(42.10, 64.86, -42.69)
CIE-LCHlch(42.10, 77.65, 326.65°)
OKLaboklab(52.93% 0.1785 -0.1187)
OKLCHoklch(52.93% 0.214 326.4)
XYZxyz(23.8349, 12.5665, 39.6904)
Luminance0.1257 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A628AB #2DAB28
analogous
#6528AB #A628AB #AB286F
triadic
#A628AB #ABA628 #28ABA6
tetradic
#A628AB #AB6528 #2DAB28 #286FAB
square
#A628AB #AB6528 #2DAB28 #286FAB
split-complementary
#A628AB #6FAB28 #28AB65
monochromatic
#461148 #761C79 #A628AB #CC3ED2 #D970DE

Accessibility & contrast

On white

5.98
#A628AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A628AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A628AB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A628AB#FFFFFF#000000##FFFFFF
##A628AB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#4869A8
Tritanopia (blue-blind)
#AA3F69
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a628ab;
/* rgb */ color: rgb(166, 40, 171);
/* oklch */ color: oklch(52.9% 0.214 326.4);
Tailwind
colors: {
  custom: {
    50: '#c471c4',
    500: '#a628ab',
    950: '#000000',
  },
}
SCSS
$custom: #a628ab;
$custom-light: #c471c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a628ab",
  "rgb": {
    "r": 166,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 297.71,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52926,
    "c": 0.21441,
    "h": 326.4
  },
  "luminance": 0.12565
}

Semantic roles & 50–950 ramp

primary
#A628AB
secondary
#6EC46A
accent
#E54349
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A628AB

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

Preview Lab → · Contrast checker → · Palette generator →

#A628AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva