#A628B2#A628B2

#A628B2 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.220 H 324.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#A628B2
RGBrgb(166, 40, 178)
HSLhsl(295, 63%, 43%)
HSVhsv(295, 78%, 70%)
CMYKcmyk(6.7%, 77.5%, 0%, 30.2%)
CIE-LABlab(42.52, 66.05, -46.17)
CIE-LCHlch(42.52, 80.58, 325.04°)
OKLaboklab(53.36% 0.1781 -0.1289)
OKLCHoklch(53.36% 0.22 324.1)
XYZxyz(24.5199, 12.8405, 43.2978)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A628B2 #34B228
analogous
#6128B2 #A628B2 #B22879
triadic
#A628B2 #B2A628 #28B2A6
tetradic
#A628B2 #B26128 #34B228 #2879B2
square
#A628B2 #B26128 #34B228 #2879B2
split-complementary
#A628B2 #79B228 #28B261
monochromatic
#49124E #771D80 #A628B2 #C843D5 #D775E0

Accessibility & contrast

On white

5.89
#A628B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#A628B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A628B2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A628B2#FFFFFF#000000##FFFFFF
##A628B21.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#A9436D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a628b2;
/* rgb */ color: rgb(166, 40, 178);
/* oklch */ color: oklch(53.4% 0.220 324.1);
Tailwind
colors: {
  custom: {
    50: '#c471ca',
    500: '#a628b2',
    950: '#000000',
  },
}
SCSS
$custom: #a628b2;
$custom-light: #c471ca;
$custom-dark: #000000;
JSON
{
  "hex": "#a628b2",
  "rgb": {
    "r": 166,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 294.783,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53358,
    "c": 0.21986,
    "h": 324.1
  },
  "luminance": 0.12839
}

Semantic roles & 50–950 ramp

primary
#A628B2
secondary
#76C76F
accent
#E64150
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A628B2

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

Preview Lab → · Contrast checker → · Palette generator →

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