#A628B1#A628B1

#A628B1 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.219 H 324.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#A628B1
RGBrgb(166, 40, 177)
HSLhsl(295, 63%, 43%)
HSVhsv(295, 77%, 69%)
CMYKcmyk(6.2%, 77.4%, 0%, 30.6%)
CIE-LABlab(42.46, 65.87, -45.68)
CIE-LCHlch(42.46, 80.16, 325.26°)
OKLaboklab(53.3% 0.1782 -0.1274)
OKLCHoklch(53.3% 0.219 324.4)
XYZxyz(24.4198, 12.8005, 42.7710)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A628B1 #33B128
analogous
#6128B1 #A628B1 #B12878
triadic
#A628B1 #B1A628 #28B1A6
tetradic
#A628B1 #B16128 #33B128 #2878B1
square
#A628B1 #B16128 #33B128 #2878B1
split-complementary
#A628B1 #78B128 #28B161
monochromatic
#48114D #771D7F #A628B1 #C942D4 #D774E0

Accessibility & contrast

On white

5.90
#A628B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#A628B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A628B1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A628B1#FFFFFF#000000##FFFFFF
##A628B11.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#4469AE
Tritanopia (blue-blind)
#A9426C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a628b1;
/* rgb */ color: rgb(166, 40, 177);
/* oklch */ color: oklch(53.3% 0.219 324.4);
Tailwind
colors: {
  custom: {
    50: '#c471c9',
    500: '#a628b1',
    950: '#000000',
  },
}
SCSS
$custom: #a628b1;
$custom-light: #c471c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a628b1",
  "rgb": {
    "r": 166,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 295.182,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53296,
    "c": 0.21908,
    "h": 324.4
  },
  "luminance": 0.12799
}

Semantic roles & 50–950 ramp

primary
#A628B1
secondary
#75C76E
accent
#E6424F
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A628B1

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

Preview Lab → · Contrast checker → · Palette generator →

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