#A628B0#A628B0

#A628B0 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.218 H 324.8°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#A628B0
RGBrgb(166, 40, 176)
HSLhsl(296, 63%, 42%)
HSVhsv(296, 77%, 69%)
CMYKcmyk(5.7%, 77.3%, 0%, 31%)
CIE-LABlab(42.40, 65.70, -45.18)
CIE-LCHlch(42.40, 79.74, 325.48°)
OKLaboklab(53.23% 0.1783 -0.126)
OKLCHoklch(53.23% 0.218 324.8)
XYZxyz(24.3205, 12.7608, 42.2480)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A628B0 #32B028
analogous
#6228B0 #A628B0 #B02876
triadic
#A628B0 #B0A628 #28B0A6
tetradic
#A628B0 #B06228 #32B028 #2876B0
square
#A628B0 #B06228 #32B028 #2876B0
split-complementary
#A628B0 #76B028 #28B062
monochromatic
#48114C #771D7E #A628B0 #C941D4 #D773DF

Accessibility & contrast

On white

5.91
#A628B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#A628B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A628B0
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A628B0#FFFFFF#000000##FFFFFF
##A628B01.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#4569AD
Tritanopia (blue-blind)
#AA426B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a628b0;
/* rgb */ color: rgb(166, 40, 176);
/* oklch */ color: oklch(53.2% 0.218 324.8);
Tailwind
colors: {
  custom: {
    50: '#c471c8',
    500: '#a628b0',
    950: '#000000',
  },
}
SCSS
$custom: #a628b0;
$custom-light: #c471c8;
$custom-dark: #000000;
JSON
{
  "hex": "#a628b0",
  "rgb": {
    "r": 166,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 295.588,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53233,
    "c": 0.2183,
    "h": 324.8
  },
  "luminance": 0.12759
}

Semantic roles & 50–950 ramp

primary
#A628B0
secondary
#74C66D
accent
#E6424E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A628B0

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

Preview Lab → · Contrast checker → · Palette generator →

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