#A628A2#A628A2

#A628A2 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.208 H 329.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#A628A2
RGBrgb(166, 40, 162)
HSLhsl(302, 61%, 40%)
HSVhsv(302, 76%, 65%)
CMYKcmyk(0%, 75.9%, 2.4%, 34.9%)
CIE-LABlab(41.59, 63.38, -38.14)
CIE-LCHlch(41.59, 73.97, 328.96°)
OKLaboklab(52.39% 0.1788 -0.1055)
OKLCHoklch(52.39% 0.208 329.5)
XYZxyz(23.0061, 12.2350, 35.3253)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A628A2 #28A62C
analogous
#6B28A6 #A628A2 #A62863
triadic
#A628A2 #A2A628 #28A2A6
tetradic
#A628A2 #A66B28 #28A62C #2863A6
square
#A628A2 #A66B28 #28A62C #2863A6
split-complementary
#A628A2 #63A628 #28A66B
monochromatic
#431042 #751C72 #A628A2 #D03BCB #DC6DD8

Accessibility & contrast

On white

6.09
#A628A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A628A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A628A2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A628A2#FFFFFF#000000##FFFFFF
##A628A21.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1357A5
Deuteranopia (green-blind)
#4E689F
Tritanopia (blue-blind)
#AC3B64
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a628a2;
/* rgb */ color: rgb(166, 40, 162);
/* oklch */ color: oklch(52.4% 0.208 329.5);
Tailwind
colors: {
  custom: {
    50: '#c470be',
    500: '#a628a2',
    950: '#000000',
  },
}
SCSS
$custom: #a628a2;
$custom-light: #c470be;
$custom-dark: #000000;
JSON
{
  "hex": "#a628a2",
  "rgb": {
    "r": 166,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 301.905,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.20755,
    "h": 329.5
  },
  "luminance": 0.12233
}

Semantic roles & 50–950 ramp

primary
#A628A2
secondary
#67C26A
accent
#E44944
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A628A2

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

Preview Lab → · Contrast checker → · Palette generator →

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